[HOTFIX] Postfix mail errors, lots of bounces with "451 4.3.0 Error: queue file write error"

Refers to:

  • Plesk 9.x and below for Linux

Created:

2016-11-16 13:19:26 UTC

Modified:

2017-01-27 15:01:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[HOTFIX] Postfix mail errors, lots of bounces with "451 4.3.0 Error: queue file write error"

Symptoms

Transcript of session follows.

Out: 220 server.mail.info ESMTP Postfix
In: EHLO myhost
Out: 250-server.mail.info
Out: 250-PIPELINING
Out: 250-SIZE 26214400
Out: 250-VRFY
Out: 250-ETRN
Out: 250-STARTTLS
Out: 250-AUTH LOGIN CRAM-MD5 PLAIN DIGEST-MD5
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In: STARTTLS
Out: 220 2.0.0 Ready to start TLS
In: EHLO myhost
Out: 250-server.mail.info
Out: 250-PIPELINING
Out: 250-SIZE 26214400
Out: 250-VRFY
Out: 250-ETRN
Out: 250-AUTH LOGIN CRAM-MD5 PLAIN DIGEST-MD5
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In: MAIL From: <sender@domain.com> SIZE=24059
Out: 250 2.1.0 Ok
In: RCPT To: <recipient@domain.com>
Out: 250 2.1.5 Ok
In: DATA
Out: 354 End data with <CR><LF>.<CR><LF>
Out: 451 4.3.0 Error: queue file write error <== Here is error

Resolution

The problem will be fixed in a future update of Parallels Plesk Panel that will be released after version 9.3.0.

The hotfix for Parallels Plesk Panel 9.3 is attached.

To install the hotfix, download the attached archive and unpack it with tar -zxf. In the resulting directory, find the file postfix-queue that is appropriate for your operating system and architecture. The archive contains a recompiled binary for all operating systems supported by Parallels Plesk Panel 9.3. Replace the existing postfix-queue file with the one you find here. The location is defined by the 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 for more information on defining the variable.

Correct the ownership and permissions to 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

If the problem persists after instating the hotfix, please read on.

There are several possible reasons for receiving error 451:

a) Lost connection errors have occurred due to an invalid SMTP client. The notifications occur after postfix interrupts the connection with lost connection after DATA .

b) Timeout problem: connection reset by peer notifications are shown in the maillog. To resolve the error, it is recommend that you increase the smtpd_timeout and smtpd_proxy_timeout values in /etc/postfix/main.cf:

/etc/postfix/main.cf
--->8---
smtpd_timeout=3600s
smtpd_proxy_timeout=3600s
---8<---

c) Hardware problems, such as insufficient disk space in the /var or /usr partition.

~# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 280G 280G 0 100% /

Monitor and increase disk space in the /var and /usr partitions to fix the problem.

Additionally, it is recommended that you change notify_classes in /etc/postfix/main.cf to forbid postfix from writing to the admin email:

/etc/postfix/main.cf
--->8---
notify_classes = software
---8<---

This setting is notify_classes = software, resource by default.

According to the manual:

resource Informs the postmaster of undelivered mail due to resource problems, such as a queue file write error.software Notifies the postmaster of mail not delivered due to software failures.

Additional information

To get a detailed error report for hosts and networks, it is recommended that you extend debug_peer_list in /etc/postfix/main.cf. Please check the following documentation page for detailed information .

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