Force exim to send email from a particular IP


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Exim

Force exim to send email from a particular IPLast Modified: Jul 11, 2014, 1:12 pm
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.


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
 
Related Helpfiles
Show a different banner in the exim welcome headers depending on IP being connected to.
I need exim to send all outbound email through a remote mail server
My server is sending spam. What do I do?
E-Mail Rate Limiting with exim and the exim.pl

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST