Articles in this section

Unable to remove corrupted messages from mail queue in Plesk

kb: bug Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

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;
    3.png

  •  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:

  1. Connect to the server via SSH;

    Note: If direct SSH access to the server is not possible, contact server administrator for further assistance.

  2. Remove all corrupted messages using the command below:

    # rm -fr /var/spool/postfix/corrupt/*

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.