How To: Change Outgoing Email IP address on a WHM / cPanel server.

Follow

Sometimes you may find your server IP address on a spam RBL/Blacklist for some reason or another.

In this situation, often the fastest fix is to change your outgoing mail IP address.

First, use an online tool such as mxtoolbox.com to make sure the new IP is not already listed on any blacklists.

Once you are happy that the new IP is not blacklisted, you can follow these steps to change the outgoing mail IP address:

1. Log into WHM and go to the 'Exim Configuration Manager' 

2. Scroll down to the 'Domains and IPs' section, and make sure the options match the ones shown in the screenshot below.

3. SSH to the server and edit the /etc/mailips file in your favourite command line text editor. If you're unsure of which text editor to use, 'nano' is the easiest for beginners.

[root@server ~]# nano /etc/mailips

4. Edit the file to make sure it looks like this:

*: 123.123.123.123

(make sure you replace 123.123.123.123 with the actual IP address you wish to send email from).

Screenshot: 

5. Save the file (in nano, it's CTL + O, then ENTER to save, then CTL + X to exit).

That's it! Your exim mail server will now send email from the IP address you've specified in the /etc/mailips file.

 

Please note: You will need to make sure your domain's SPF record specifies the new IP address or your email may not be accepted by the receiving host. i.e. "v=spf1 a mx ip4:123.123.123.123 ~all"

(make sure you replace 123.123.123.123 with the actual IP address you wish to send email from).

 

Have more questions? Submit a request

Comments

Powered by Zendesk