If you can’t find the answer you are looking for please submit a ticket.
We are here to help 24/7/365!

How to switch Exim IP temporarily
Posted by – NA – on 28 December 2010 10:17 AM
go to whm >> exim configuration editor

then check the following option and enable it

“Send outgoing mail from the ip that …”

then go /etc/mailips and add the IP

there are two options to switch the mail server IP in Cpanel,

1) Login to WHM

Click Exim Configuration Editor

Check the box next to:
“Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)”

Save Changes

Then edit the file /etc/mailips

from shell and add:

*: ReplacewithnewIP

service exim restart


Login to Shell

Access the Exim configuration file:
nano /etc/exim.conf

Locate remote_smtp

The default setup will look like:

driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}

Change to:

driver = smtp
interface = # Change to your server IP address.

Save changes and exit.

Restart Exim

If there is an exim update when you upgrade your cpanel server you will need to re-enter the interface again