Support Center > Knowledgebase > DirectAdmin > eMail > Exim > Force exim to send email from a particular IP
Force exim to send email from a particular IP
If you need to change the IP that is used to send email out of your systme, you can do so by editing your /etc/exim.conf.
Change:
remote_smtp:
driver = smtp
to:
remote_smtp:
driver = smtp
interface = 1.2.3.4
Where
1.2.3.4 is the IP you want exim to use.
You'll also need to update the SPF values in all TXT records in the dns zone for all domains that send from your server.
The SPF value must match the sending IP, which will be the new value you set.
SpamBlocker 4.3.1+ and DirectAdmin 1.47.0 has the ability to do this automatically based on the owned IP:
http://www.directadmin.com/features.php?id=1692
old:
Exim also has the ability to use string expansion to change the IP based on some criteria you'd like.
Discussion about this is on the forum. Note that we have not tested it:
http://forum.directadmin.com/showthread.php?t=36468&page=3&p=231599#post231599
Also Read