Manually Clear from Console / Command Line cPanel Exim Mail Queue

To clear the cPanel exim mail queue quickly from a command line / shell use the following commands :


exim -bp | exiqgrep -i | xargs exim -Mrm


The following will remove mails older than 5 mins (300 seconds). Adjust to the time you would like.

exiqgrep -o 300 -i | xargs exim -Mrm 

Share this page:


Was this article useful? Have any suggestions or improvements to the information?

Also Read

FSCK Options and Maintenance

Provided below are some useful commands pertaining to FSCK. Update commands to your environment /...

Repairing and Optimizing all MySQL and MariaDB Databases on the Server

From time to time you will find repairing and optimizing your databases are necessary. From a...

Nginx redirecting folder to another host or server

From time to time you may want to proxy out a path to another server or location. To perform a...

VPS Time not Correct with Time Server

If you have a problem with your VPS time not staying sync in a Xen VPS you will want to enable...

error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery...