Latest blog entry

qmail-inject: fatal: mail server permanently rejected message

June 21, 2010    |   Posted by admin   |    Category: Plesk Management

You may notice “qmail-inject: fatal: mail server permanently rejected message” error message while sending emails from a Plesk server

qmail-queue-handlers[xxxx]: Unable to change group ID: Operation
not permitted
qmail-queue[xxxx]: files: write buf 0xbff4dfe0[156] to fd (5)
error - (32) Broken pipe
qmail-queue[xxxx]: files: cannot write chuck from 4 to 5 - (32)
Broken pipe

The reason is the incorrect permission and/or ownership of the ‘qmail-queue’ file under the /var/qmail/bin directory.

To fix the issue, you need to make sure the ownership of theĀ qmail-queue file is mhandlers-user:popuser and the permission are 2511.

To check the current ownership and permission of the file, execute:

# ls -la /var/qmail/bin/qmail-queue

It should be as follows:

-r-x--s--x 1 mhandlers-user popuser May 4 /var/qmail/bin/qmail-queue

If not, correct the ownership

# chown mhandlers-user.popuser /var/qmail/bin/qmail-queue

set the proper permissions,

# chmod 2511 /var/qmail/bin/qmail-queue

Restart the qmail service and the emails will work.

Comments Off on qmail-inject: fatal: mail server permanently rejected message