Home Miscellaneous How to change the exim sending IP ?

How to change the exim sending IP ?

by SupportPRO Admin



1.Shutdown the exim service.
>>service exim stop or /etc/init.d/exim stop
2. Edit your exim configuration file.
>>nano /etc/exim.conf
3. Go to “remote_smtp” section under “TRANSPORTS CONFIGURATION”. By default it would look like 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}}
4. Comment line containing “interface” and “helo_data” and add new “interface” to match with that of the new IP address. It should look like this:
remote_smtp:
driver = smtp
interface = 208.99.113.240 # An available IP on this system.
Code:
chattr +aui /etc/exim.conf
5. service exim restart or /etc/init.d/exim restart

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Comment