Unable to start postfix: Address already in use

Refers to:

  • Plesk 11.0 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:39:42 UTC

Modified:

2016-12-21 18:54:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start postfix: Address already in use

Symptoms

Unable to start postfix , it fails with the error below in /usr/local/psa/var/log/maillog log file:

postfix/postfix-script[9889]: starting the Postfix mail system
postfix/master[9890]: fatal: bind 0.0.0.0 port 25: Address already in use

Cause

Wrong configuration entries in /etc/postfix/master.cf , there are duplicated entries in this configuration file.

Resolution

  1. Make sure that other application is not using 25 port:

    # netstat -ntpl | grep 25
  2. Edit /etc/postfix/master.cf and comment out all duplicates of configuration line as on example below:

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

    This line with this IP address should be only once in this configuration file.

  3. Start postfix

Have more questions? Submit a request
Please sign in to leave a comment.