Mail forwarding does not work on Postifx server

Created:

2016-11-16 13:11:59 UTC

Modified:

2017-08-16 16:31:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mail forwarding does not work on Postifx server

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

Mail forwarding does not work on Postifx server.

Cause

Incorrect configured file /usr/sbin/sendmail.postfix or it is configured as a link to some file.

Resolution

  1. Check sendmail file as below:

    # grep ^sendmail_path /etc/postfix/main.cf
    sendmail_path = /usr/sbin/sendmail.postfix
  2. Make sure that it is physical file (not a link):

    # ll /usr/sbin/sendmail.postfix
    -rwxr-x--- 1 root postdrop 267232 Apr 25 2014 /usr/sbin/sendmail.postfix

On test installation Plesk 12.0.8 with Centos 6:

    # ll /usr/sbin/sendmail.postfix
-rwxr-x--- 1 root postdrop 267232 Apr 25 2014 /usr/sbin/sendmail.postfix

# md5sum /usr/sbin/sendmail.postfix
c6841434dfbbd1b946a39a1ab8918666 /usr/sbin/sendmail.postfix

If it is not a physical file, replace file from postfix-2.8.17-14042513.x86_64.rpm package (or from distributive of current installed Postifix version):

  1. Download postfix-2.8.17-14042513.x86_64.rpm from http://autoinstall.plesk.com/PSA_12.0.18/dist-rpm-CentOS-6-x86_64/opt/maildrivers/ :

    # mkdir postfixtest
    # cd postfixtest
    # wget http://autoinstall.plesk.com/PSA_12.0.18/dist-rpm-CentOS-6-x86_64/opt/maildrivers/postfix-2.8.17-14042513.x86_64.rpm
  2. Unpack package:

    # rpm2cpio postfix-2.8.17-14042513.x86_64.rpm | cpio -idmv
  3. Replace /usr/sbin/sendmail.postfix :

    # pwd
    /root/postfixtest
    # mv usr/sbin/sendmail.postfix /usr/sbin/
    mv: overwrite `/usr/sbin/sendmail.postfix'? y
    # chown root:postdrop /usr/sbin/sendmail.postfix
    # chmod 0750 /usr/sbin/sendmail.postfix
Have more questions? Submit a request
Please sign in to leave a comment.