Broken spool file – exim queue corrupt on cPanel server

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

WHMCS Complete Billing and Support

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

Posted in cPanel.

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *