Knowledgebase

How to Clear the Mail Queue on cPanel Print

  • 3

If you have a Linux server with cPanel installed, you might need to clear the mail queue. To do this, you can run the following command via SSH:

Code;
exim -bp | awk '{print $3}' | xargs exim -Mrm
This command will remove all emails from the Exim mail queue. The duration of the process depends on the number of emails in the queue. While the command is running, you might experience some temporary slowness on the server. It is recommended to perform this operation during off-peak hours.
 

Was this answer helpful?
Back

Powered by WHMCompleteSolution