Change SMTP source IP address in sendmail
1. Edit sendmail.cf search for ClientPortOptions
2. Change
#O ClientPortOptions=Family=inet, Address=x.x.x.x
to
O ClientPortOptions=Family=inet, Address=
3. Restart sendmail
4. Verify by sending a mail and checking the full header
CLIENT_OPTIONS(`field1=value1,field2=value2,…’) in sendmail.mc file is equivalent to ClientPortOptions in the sendmail.cf file.
Leave a Reply
You must be logged in to post a comment.