This is the procedure to use when one of your accounts has been compromised, a spammer has flooded your mail queue, and you want to entirely clear it out.



Via SSH, run these commands:

find /var/spool/clientmqueue -type f -delete
find /var/spool/mqueue -type f -delete


Via SSH, run this command:

postsuper -d ALL


Via SSH, run this command:

exim -bp |grep "<" |awk {'print $3'} |xargs exim -Mrm


Stop the QMail service first.  If QMail runs via xinetd (i.e. in the case of Plesk) you can skip this step.

Via SSH, run the following:

service qmail stop
for i in bounce info intd local mess remote todo; do
find /var/qmail/queue/$i -type f -exec rm {} \;
service qmail start


Login via RDP.  Stop the SmarterMail service.

Rename the spool directory, i.e. C:\SmarterMail\Spool -> C:\SmarterMail\Spool.bak

Start the SmarterMail service.  Delete the old spool directory at your convenience.



Login via RDP.  Stop the MailEnable Postoffice, MTA, and SMTP services.

Rename the Inbound and Outgoing queue directories, i.e.:

C:\Program Files (x86)\Mail Enable\Queues\SMTP\Inbound -> C:\Program Files (x86)\Mail Enable\Queues\SMTP\Inbound.bak

C:\Program Files (x86)\Mail Enable\Queues\SMTP\Outgoing -> C:\Program Files (x86)\Mail Enable\Queues\SMTP\Outgoing.bak

Re-create the Inbound and Outgoing directories.  Under each, create a sub-directory called "Messages".

Start the above MailEnable services.  Delete the old queue directories at your convenience.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Recursively delete old files in Windows

The following command will recursively delete files older than X number of days: forfiles -p...

FileZilla FTP server recommended settings

Edit -> Settings*Note: settings not explictly mentioned can generally be left as defaults...

MySQL scheduled backups on Linux via CRON

The following commands can be added via crontab.  As-is, they will dump all MySQL databases to a...

Import MS SQL T-SQL script

A MS SQL T-SQL script can be imported via the following command-line: sqlcmd -U db_user -P...

Windows 2003 IIS will not start

Problem: IIS is stopped and trying to start it returns an "IIS admin service not started"...