Change the Outgoing IP for Mail on WHM cPanel Server


You may want to change the IP address used to send outbound mail on your cPanel & WHM system. This guide explains how to do this; note that you must have root access to the system to make these changes.

Procedure

  1. Log in to WHM.
  2. Navigate to Exim Configuration Manager.
  3. Make sure the following option is enabled:
    Reference /etc/mailips for outgoing SMTP connections
  4. In SSH, edit the /etc/mailips file and add the following line, replacing 23.131.216.33 with the IP address from which outbound messages should be sent. (NOTE: If you are using a system with a NAT network configuration, enter the private IP address):
    *: 23.131.216.33

With this code, you configure Exim to send mail for all domains from the 23.131.216.22 IP address on your system.

 

If you have multiple IPs and you would like to specify a different IP for some domains, you can do so with a configuration similar to the following:

domain1.tld: 23.131.216.11
domain2.tld: 23.131.216.22
*: 23.131.216.33

For additional details and more customization options, see our documentation here:

How to Configure the Exim Outgoing IP Address

  • 1 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Related Articles

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...

Assigning a Dedicated IP Address to a Subdomain using WHM

To assign a dedicated IP address to a subdomain, perform the following steps: Step 1: Add the...

How to Uninstall Installatron in WHM cPanel Server

This guide will show you how to quickly uninstall Installatron software from WHM/cPanel server....

How to Install Installatron in WHM cPanel Server

This guide will show you how to download and install Installatron on your cPanel/WHM server. To...

How to Install Softaculous with cPanel/WHM

This guide will show you how to download and install Softaculous on your cPanel/WHM server. To...