SymptomsEmail 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 email@example.com
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: Handlers Filter before-remote for qmail started ...
Aug 6 12:07:52 t1 qmail-remote-handlers: cannot create temporary file - (13) Permission denied
Aug 6 12:07:52 t1 qmail-remote-handlers: cannot read message from stdin
Aug 6 12:07:52 t1 qmail: 1344265672.152020 delivery 445: failure: handlers_permanentfail/
CauseThe 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.
ResolutionWithout 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