• Article for your preferred language does not exist. Below is international version of the article.

Article ID: 114491, created on Aug 1, 2012, last review on Jun 3, 2016

  • Applies to:
  • Plesk Automation 11.5

Question

How to change outgoing IP address on Postfix mail node?

Answer

Postfix node uses the default IP address for sending mail from.

The IP is defined in /etc/postfix/master.cf:

203.0.113.2- unix - n n - - smtp -o smtp_bind_address=203.0.113.2 -o smtp_bind_address6= -o smtp_address_preference=ipv4

To change the IP address of outgoing mail:

  1. Backup the original configuration file:

    # cp /etc/postfix/master.cf{,.back}
    
  2. Open the configuration file and replace old IP address with the new one in line:

    203.0.113.2- unix - n n - - smtp -o smtp_bind_address=203.0.113.2 -o smtp_bind_address6= -o smtp_address_preference=ipv4
    
  3. Restart Postfix.

e0aff7830fa22f92062ee4db78133079 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF