cannot create temporary file - (13) Permission denied

This is dues to bug in the default installation of qmail in handling local mails... such as mails to root@localhost where the qmail-local binary is not set with the right owner and permissions, as such mails are not able to be written to the spool located at "/usr/local/psa/handlers/spool".

The error in "/usr/local/psa/var/log/maillog" looks like below:

qmail-local-handlers[......]: cannot create temporary file - (13) Permission denied

To resolve, change the owner and permission of /var/qmail/bin/qmail-local to reflect the same as qmail-remote.

cd /var/qmail/bin
chown mhandlers-user:popuser qmail-local
chmod g+s,g-r,o-r qmail-local

Restart qmail:

/etc/init.d/qmail restart

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
plesk empty logwatch email

This was also an issue with mails generated via logwatch with empty subject and body.

Error was as below:

handlers_stderr: Error occured during execv(): Permission denied.

Thanks Sandip

Right on the mark. Thank you very much.

Comment