Broken spool file – exim queue corrupt on cPanel server

Sometime you may receive the error stating that your exim queue is corrupted.

This can happen if the spool file remove from the server. If you are using ConfigServer Mail Queues (cmq), you may see the following message:

Broken spool file – removed

To get rid of this message, you can follow the below steps:

[1] Login to your server via SSH using root user or sudo.

[2] Now search for the old message before 2 hours using the following command:

[root@~]# exiqgrep -y 7200
Line mismatch: 5h 1Qac1H-0005ql-So

Here 7200 is in second. If you wish to search for old message, you will need to calculate second accordingly.

[3] Now we will try to freeze the offending message ID using the following command:

[root@~]# exim -Mf 1Qac1H-0005ql-So
Spool data file for 1Qac1H-0005ql-So does not exist

If you get a message stating that spool data file does not exist, you can proceed to next step.

[4] We can remove offending message using the following command:

[root@~]# exim -Mrm 1Qac1H-0005ql-So
Spool data file for 1Qac1H-0005ql-So does not exist
Continuing, to ensure all files removed
Message 1Qac1H-0005ql-So has been removed or did not exist

1 Comment

  1. Avatar
    Priyanka PatilApril 20, 2016

    Thanks for the quick and simple fix.

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top
%d bloggers like this: