How to change source SMTP IP address in sendmail
April 24, 2008 by Mohammed
Follow the steps below, if you want to change the source SMTP ip address in sendmail.
1) change the line below in sendmail.cf
#O ClientPortOptions=Family=inet, Address=x.x.x.x
to
O ClientPortOptions=Family=inet, Address=<ip address you want>
3) restart sendmail
Send a test mail and check its header. The source IP address should have changed
2 Responses to “How to change source SMTP IP address in sendmail”
Good One !!!!
I think it will be useful to list the steps to change source SMTP IP if exim is the MTA. Here comes the steps
1. Edit /etc/exim.conf with your favorite editor.
2. Locate the section of the file that contains the following:
remote_smtp:
driver = smtp
3. Replace this section with the following modified version :
remote_smtp:
driver = smtp
interface =
4. Restart Exim