Answered by the Webhosting Experts

How to change SMTP server IP (Exim IP) on WHM server

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

2) Login to Shell

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

Locate remote_smtp

The default setup will look like:

remote_smtp:
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:

remote_smtp:
driver = smtp
interface = 12.14.12.14 # 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.

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.