Symptoms
- There is corrupted queue under Plesk > Tools & Settings > Mail Server Settings > Mail Queue;
-
Pressing Clear button does not remove corrupted messages and corrupted queue still exists;
-
Corrupted messages are located in
/var/spool/postfix/corrupt/
directory:# ls -l /var/spool/postfix/corrupt/
total 8
-rw-r--r-- 1 root root 5 Apr 26 20:43 ABC1
-rw-r--r-- 1 root root 5 Apr 26 20:44 ABC2
Cause
This is Plesk bug with ID PPPM-8440: "Clear" operation is misleading for corrupt mail queue Postfix. It will be fixed in future Plesk updates.
Postfix does not operate on the corrupted queue by design. Users should look through corrupted messages and either manually fix and re-inject them into Postfix, or remove them from the filesystem. Plesk adheres to the same policy – queue cleanup in Plesk GUI affects only non-corrupted queues.
Resolution
As a workaround delete corrupted messages manually:
-
Connect to the server via SSH;
Note: If direct SSH access to the server is not possible, contact server administrator for further assistance.
- Remove all corrupted messages using the command below:
# rm -fr /var/spool/postfix/corrupt/*