How to change source SMTP IP address in sendmail:


if you want to change the source SMTP ip address in sendmail.

1. Edit sendmail.cf (/etc/mail/sendmail.cf) through vi, nano or pico

from:

#O ClientPortOptions=Family=inet, Address=0.0.0.0

to:

O ClientPortOptions=Family=inet, Address=< your IP here >

# /etc/init.d/sendmail restat

Comments

Popular posts from this blog

Resolved: DOCKER: Error response from daemon: Could not attach to network / rpc error: code = 7 desc = network not manually attachable.

yum failed 6 times. Cannot continue!

unexpectedly shrunk window (repaired) in dmesg log - TCP Peer