How to change source SMTP IP address in sendmail

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

Leave a Reply

Your email address will not be published.