Mail delivery fails: queue file write error

Created:

2016-11-16 12:48:50 UTC

Modified:

2017-08-08 13:31:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mail delivery fails: queue file write error

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Mail delivery failed with Error: queue file write error .

The following entries can be found in /var/log/maillog :

Mar 29 17:32:16 plesk postfix/smtpd[21753]: connect from antispam.example.com[203.0.113.2]
Mar 29 17:32:16 plesk spawn[21757]: fatal: spawn_comand: execvp /usr/lib64/plesk-9.0/postfix-queue: No such file or directory
Mar 29 17:32:17 plesk postfix/spawn[21756]: warning: command /usr/lib64/plesk-9.0/postfix-queue exit status 1
Mar 29 17:32:17 plesk postfix/smtpd[21753]: warning: lost connection with proxy 127.0.0.1:10025
Mar 29 17:32:17 plesk spawn[21758]: fatal: spawn_comand: execvp /usr/lib64/plesk-9.0/postfix-queue: No such file or directory

Cause

Corrupted Plesk upgrade from previous Plersk versions.

Resolution

  1. Download plesk-mail-pc-driver from http://autoinstall.plesk.com . The package should be from the previous Plesk version. An example for Postfix on CentOS 5 x86_64:

    # mkdir /root/__postfix
    # cd /root/__postfix
    # wget http://autoinstall.plesk.com/PSA_11.5.30/dist-rpm-CentOS-5-x86_64/opt/maildrivers/plesk-mail-pc-driver-11.5.30-cos5.build115130819.13.x86_64.rpm

    For Debian 7 x86_64:

     wget http://autoinstall.plesk.com/PSA_11.5.30/dist-deb-Debian-7.0-i386/opt/maildrivers/plesk-mail-pc-driver_11.5.30-debian7.0.build115130819.13_i386.deb
  2. Extract files from the downloaded package:

    For RedHat-based systems:

    # rpm2cpio plesk-mail-pc-driver-11.5.30-cos5.build115130819.13.x86_64.rpm | cpio -idmv

    For Debian-based systems:

    # dpkg --extract plesk-mail-pc-driver_11.5.30-debian7.0.build115130819.13_i386.deb /root/_postfix
  3. Copy postfix-queue from extracted files:

    # cp ./usr/lib64/plesk-9.0/postfix-queue /usr/lib64/plesk-9.0/
    # chown mhandlers-user:popuser /usr/lib64/plesk-9.0/postfix-queue
    # chmod 550 /usr/lib64/plesk-9.0/postfix-queue

    For Debian-based systems:

    # cp ./usr/lib/plesk-9.0/postfix-queue /usr/lib64/plesk-9.0/
    # chown mhandlers-user:popuser /usr/lib64/plesk-9.0/postfix-queue
    # chmod 550 /usr/lib64/plesk-9.0/postfix-queue
Have more questions? Submit a request
Please sign in to leave a comment.