Article ID: 114582, created on Aug 15, 2012, last review on May 13, 2016

  • Applies to:
  • Plesk 11.x for Linux
  • Plesk 10.x for Linux

Symptoms

Email messages cannot be sent from the server.

Webmail returns the following:
There was an error sending this message: sendmail returned error code 111

These messages appear in the /usr/local/psa/var/log/maillog:
Aug  6 12:07:52 t1 qmail: 1344265672.150425 starting delivery 445: msg 37029301 to remote mailname@domain.tld
Aug  6 12:07:52 t1 qmail: 1344265672.150518 status: local 0/15 remote 1/120
Aug  6 12:07:52 t1 qmail-remote-handlers[284976]: Handlers Filter before-remote for qmail started ...
Aug  6 12:07:52 t1 qmail-remote-handlers[284976]: cannot create temporary file - (13) Permission denied
Aug  6 12:07:52 t1 qmail-remote-handlers[284976]: cannot read message from stdin
Aug  6 12:07:52 t1 qmail: 1344265672.152020 delivery 445: failure: handlers_permanentfail/


Cause

The issue is usually caused by incorrect permissions on some qmail folders.

In some cases, however, it may be noted that even though the permissions are correct, the issue disappears after re-forcing the permissions on those folders.

Resolution

Without checking the permissions, re-force them using the following commands:

chmod 755 /var/qmail/bin
chmod 755 /usr/local/psa/handlers
chmod 755 /usr/local/psa/handlers/hooks

dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF