cPanel Exim How To Clear The Mail Queue

Here’s the proper way to clear the exim mail queue on a cpanel server.

/etc/init.d/exim stop;
sleep 10;
killall -9 exim eximd
sleep 5;

#clean out the mail queue
find /var/spool/exim -mindepth 2 -type f -exec rm -rf {} \;

#clean out the mail db files
find /var/spool/exim/db -type f -exec rm -rf {} \;

#reset the eximstats database tables
echo “truncate table sends;” | mysql eximstats
echo “truncate table defers;” | mysql eximstats
echo “truncate table failures;” | mysql eximstats
echo “truncate table smtp;” | mysql eximstats

/etc/init.d/exim restart

Was this answer helpful?

 Print this Article

Also Read

How can I limit the number of emails a domain can send out per hour?

Click on the "Tweak Settings" link under "Server Setup". Within the "Mail" section is a text box...

How do I create a MySQL database and user in cPanel/WHM? How do I connect them?

To create a MySQL database and user, log into the cPanel interface for the desired domain and...

How Can I See My Total Disk Space and Bandwidth Available on My Reseller Account?

If you would like to check the number of files, disk space or how much bandwidth you are using on...

What is the difference between Local, Backup, and Remote Mail Exchanger in cPanel?

These are options for the DNS zone for a domain in cPanel. Essentially, this tells cPanel how you...

Password Protect a folder on your website

Overview This article explains how to add password protection to a folder on your website What...

Powered by WHMCompleteSolution