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: Aug 26, 2015, 4:49 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.

  driver = smtp


  driver = smtp
  interface =

Where 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:

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:
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

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