Add exim interface IP

Consider your mail server IP got blocked in many spam databases and instead of waiting for the spam database authorities to remove it ( while you have given the IP unblock request ) you can change the mail server IP which exim uses so that email traffic is open again. We can use the “interface” option in exim configuration file for this purpose.

Stop exim
# /etc/init.d/exim stop

Edit your exim configuration file.
# vi /etc/exim.con or take Exim configuration Editor at WHM
go to “remote_smtp” section under “TRANSPORTS CONFIGURATION”.

By default it would look like below:
Quote:
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}}

Remove or comment line containing “interface” and “helo_data” and add new “interface” to match with that of your new IP address. It should look like as follows:
Quote:
remote_smtp:
driver = smtp
interface = 79.99.65.167 # Your new Mail server IP address.

Now save your changes and exit out from your exim configuration file.

Note : Dont forget to set read only attributes on exim configuration file, so that it wont get reset to default automatically ( It  might get removed in new Cpanel/WHM versions but if you have used the “Exim configuration editor” option under WHM this change will remain intact over further updates).

And if you are setting an attribute you can do it using following command:
# chattr +aui /etc/exim.conf

Start exim service on your server.
# service exim restart or /etc/init.d/exim restart

Setting a reverse DNS for this new IP address to point a valid FQDN would be a good idea and we recommend this. Now
try sending a test email and you will find that, it was sent using this new IP address configured under your exim configuration.

:)

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Leave a Reply