Fast2Host Logo


Change mail sending IP - Linux

Sometimes mail server IP gets blacklisted in the RBL's which causes inconvenience to send / receive emails. To overcome the problem, the mail server IP can be changed so that mails will worked fine.

To change mail server IP:

1) Login to WHM and got to WHM >> Main >> Service Configuration >> Exim Configuration Editor >> Domains and IPs , enable option "Send outgoing mail from the ip that matches the domain name in /etc/mailips"

2) Login in the server as a root user using shell and open file /etc/mailips for editing

which will display something like this


Replace with the new mail server IP and save the file.

NB. Add the line if it doesn't exist

3) Restart exim service

    # /etc/init.d/exim restart

Maintain peace of mind with 24/7 UK based support

Email any time or call 01480 26 00 00 014 80 26 00 00