Error in maillog after switching to Postfix: /usr/sbin/sendmail.postfix-bin: No such file or directory

Refers to:

  • Plesk 12.0 for Linux

Created:

2016-11-16 13:10:22 UTC

Modified:

2016-12-21 20:06:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Error in maillog after switching to Postfix: /usr/sbin/sendmail.postfix-bin: No such file or directory

Symptoms

The following error appears in /var/log/maillog after switching to Postfix:

2E2011A0A34    11962 Wed Aug 12 18:23:42  user@domain.tld
(temporary failure. Command output: /usr/sbin/sendmail.postfix: line 2: /usr/sbin/sendmail.postfix-bin: No such file or directory tee: /var/tmp/mail.send: Permission denied tee: standard output: Broken pipe tee: write error plesk sendmail[10565]: sendmail unsuccessfully finished with exitcode 127 4.2.1 Message can not be delivered at this time)
someuser@example.com

Cause

/usr/sbin/sendmail.postfix-wrapper script refers to /usr/sbin/sendmail.postfix-bin , which is missing from the system.

Resolution

  1. Download postfix package from autoinstall.plesk.com suitable for the installed operating system version.

E.g. for CentOS 6 with Plesk 12.0: /PSA_12.0.18/dist-rpm-CentOS-6-x86_64/opt/maildrivers

  1. Extract the package without installing it:

for dpkg-based operating systems:

    # dpkg -x postfix-2.8.17-14042513.x86_64 /directory/to/extract

where `/directory/to/extract` is a directory for extracting files

**for rpm-based** operating systems:

# rpm2cpio postfix-2.8.17-14042513.x86_64 | cpio -ivd /usr/sbin/sendmail.postfix
  1. Move sendmail.postfix file to /usr/bin/sendmail.postfix and make it executable:
    # mv /directory/to/extract/usr/bin/sendmail.postfix /usr/bin/sendmail.postfix-bin
    # chmod +x /usr/bin/sendmail.postfix-bin

    where /directory/to/extract is the directory where files were extracted at step 2

Alternatively, copy /usr/sbin/sendmail.postfix file from a server with the same operating system and the same version of postfix package. Rename it to /usr/sbin/sendmail.postfix-bin and set execute permissions to it.

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