SymptomsParallels Plesk Panel version 9.0 is running with Postfix MTA.
Emails with big attachments cannot be sent from the server. The following error is shown in mailog $PRODUCT_ROOT_D/var/log/maillog:
Dec 18 18:28:45 plesk before-queue: handlers_stderr: PASS
Dec 18 18:28:45 plesk before-queue: errno: Broken pipe
Dec 18 18:28:45 plesk before-queue: System error: Broken pipe
Dec 18 18:28:45 plesk before-queue: Unable to write data to stream
Dec 18 18:28:45 plesk before-queue: Some error occured
Dec 18 18:28:45 plesk postfix/spawn: warning: command /usr/lib64/plesk-9.0/postfix-queue exit status 255
How do I resolve the problem?
CauseThe error is caused by timeout received by postfix-queue during message processing.
Email messages are supposed to be sent within 30 seconds. Utility postfix-queue is compiled with a timeout value of 30 seconds in Parallels Plesk Panel v.9.0.
If sending takes more then 30 seconds, the procedure fails due to timeout.
ResolutionA recompiled postfix-queue with a timeout value of 300 seconds (5 minutes) for Parallels Plesk Panel v.9.0 is attached.
To install postfix-queue, it is best to download the archive attached and unpack it with tar -zxf. In the resulting directory, find the postfix-queue file appropriate for your operating system and architecture. The archive contains recompiled binary for all operating systems supported by Parallels Plesk Panel v.9.0.
Replace the existing postfix-queue file with the new one. The location is defined by Plesk variable $PLESK_LIBEXEC_DIR. It may be /usr/lib/plesk-9.0/, /usr/lib64/plesk-9.0/ or /usr/local/libexec/plesk-9.0 according to your operating system and architecture. Refer to this article to define the variable: http://kb.sp.parallels.com/en/5794
Please remember to correct ownership and permissions, which should be set as: mhandlers-user:popuser, 550.
You may correct permissions with the commands chown and chmod. For example, for CentOS5 32bit:
~# chown mhandlers-user:popuser /usr/lib/plesk-9.0/postfix-queue
~# chmod 550 /usr/lib/plesk-9.0/postfix-queue
A timeout value of 300 seconds should be enough to process messages up to 10M in size with normal server loading.
The recompiled utility with a timeout value of 300 seconds is included in Parallels Plesk Panel versions 9.2 and later.
If messages cannot be sent within 300 seconds, the same error occurs. To resolve the problem in that case, we recommend improving your server loading times.