Applicable to:
- Plesk for Linux
Symptoms
-
Mail is stuck in the mail queue. There are deferred emails shown in Plesk at Tools & Settings > Mail Server Settings > Mail Queue.
-
The following error messages appear in the mail logfile
/var/log/maillog
:CONFIG_TEXT: postfix-local: System error .qmail: Permission denied
postfix-local: Wrong permissions for .qmail
CONFIG_TEXT: postfix-local: File .qmail is writable for group or others
postfix-local: Wrong permissions for .qmail
Cause
The .qmail
file located in the email account directory (/var/qmail/mailnames/example.com/john_doe/
) has invalid permissions.
The correct permissions are:
# stat /var/qmail/mailnames/example.com/john_doe/.qmail | grep Access
Access: (0600/-rw-------) Uid: ( 30/ popuser) Gid: ( 30/ popuser)
Resolution
-
Connect to the Plesk server via SSH.
-
Run the mchk Plesk repair utility to fix permissions:
Note: The utility will resend all deferred emails in the mail queue.
# /usr/local/psa/admin/sbin/mchk --with-spam
Comments
3 comments
What if first step fixed simlinks and scripts but calling "set-permissions" cause error
'chown : cannot access /usr/lib/postfix/dict_cdb.so' No such file or directory' ?
Hi @Антон Ткачов,
Actually, running set-permissions on a Plesk server under some OSes can result in wrong permissions being applied (as we have a custom one on Debian/Ubuntu, different from the postfix defaults), so I removed this command from the article.
In case you are still seeing `Wrong permissions for .qmail` in the maillog, I suggest running repair mail as follows:
# plesk repair mail
Perhaps you can write what the CORRECT permissions are for a .qmail file?
Please sign in to leave a comment.