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
# vi /etc/mailips
and add:
*: newIP
# service exim restart
** Login through SSH
# vi /etc/exim.conf
Locate remote_smtp
Change as per below:
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}}
interface = 111.222.333.444 # Change to your server IP address.
Save changes and exit.
# service exim restart
No comments:
Post a Comment