Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
Symptoms
Opening mailbox page in the Plesk interface Domains > example.com > Mail > Mail Accounts > john.doe@example.com results in the error:
Server Error
500 PleskUtilException
mailmng-mailname failed: Unable to open dir /var/qmail/mailnames/example.com/john.doe/@attachments: No such file or directory System error 2: No such file or directory
Cause
Custom cronjob configured in Tools & Settings Scheduled Tasks (Cron Jobs) is set to remove empty folders in /var/qmail/mailnames with a command similar to:
CONFIG_TEXT: /usr/bin/find /var/qmail/mailnames -type d -empty -delete
Therefore, the @attachments folder that it was empty, was removed.
Resolution
- Log into Plesk
- Go to Tools & Settings > Scheduled Tasks (Cron Jobs) and remove the custom cronjob.
- Connect to the server via SSH.
-
Repair the affected mailbox by executing the below command:
# plesk repair mail john.doe@example.com
Comments
Please sign in to leave a comment.