Article ID: 124613, created on Feb 26, 2015, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


Sending a message from a server fails with error:

qmail-remote-handlers[20058]: Handlers Filter before-remote for qmail started ...

==> qmail-remote-handlers[20058]: cannot create temporary file - (13) Permission denied

qmail-remote-handlers[20058]: cannot read message from stdin

==>qmail: 1379569885.888285 delivery 129: failure: handlers_permanentfail/


Incorrect permissions to mail handler file:

    # ll /var/qmail/bin/qmail-remote
    -r-xr-xr-x 1 root qmail 103195 Sep 17 02:43 /var/qmail/bin/qmail-remote

Correct permissions are:

    # ll /var/qmail/bin/qmail-remote
    -r-x--s--x 1 mhandlers-user popuser 103195 Sep 17 02:43 /var/qmail/bin/qmail-remote


  1. Discover what package the file belongs to and find files with modified permissions owned by the package:

    # rpm -qf /var/qmail/bin/qmail-remote
    # rpm -V plesk-mail-qc-driver
    SM5....T.    /usr/lib64/plesk-9.0/mailsrv_conf_init
    S.5....T.    /usr/local/psa/admin/sbin/mailmng
    S.5....T.    /usr/local/psa/admin/sbin/mailmng-core
    ......G..    /var/lib/plesk/mail/auth
    SM5....T.    /var/qmail/bin/qmail-local

    M in the output above means Mode differs (includes permissions and file type).

  2. Repair the package permissions:

    # rpm --setperms plesk-mail-qc-driver

All the modified permissions will be set to default ones:

    [root@ppp115 ~]# rpm -V plesk-mail-qc-driver
    S.5....T.    /usr/lib64/plesk-9.0/mailsrv_conf_init
    S.5....T.    /usr/local/psa/admin/sbin/mailmng
    S.5....T.    /usr/local/psa/admin/sbin/mailmng-core
    ......G..    /var/lib/plesk/mail/auth
    S.5....T.    /var/qmail/bin/qmail-local

Additional information

Mail test PHP script issue: cannot create temporary file - (13) Permission denied

Search Words

qmail-queue-handlers cannot create temporary file - (13) Permission denied

handlers permanentfail

Unable to save stdin content to temporary file

trouble injecting bounce message

php formmail.php giving FAILED to send alert

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF