postfix change outgoing IP address

vi /etc/postfix/master.cf

smtp unix – – – – – smtp
-o smtp_bind_address=xx.xx.xx.xx
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix – – – – – smtp
-o smtp_bind_address=xx.xx.xx.xx
-o smtp_fallback_relay=

Leave a Reply

Your email address will not be published. Required fields are marked *