ExchangeORG.net

Clean SMTP queues from a spam attack.

I've seen a loot of questions in different newsgroups about how to clean
SMTP queues from a spam attack.

The easiest way to do this is to use the Advanced Queuing
Administration Command Line Interface tool (aqadmcli.exe)

Run aqadmcli.exe from a command line with the following syntax to delete all messages from all queues:

setserver "Servername"
delmsg flags=all

Run aqadmcli.exe from a command line with the following syntax to delete all messages from a specific sender address:

setserver "Servername"
delmsg flags=sender,sender=sender@domain_name.com

You can download aqadmcli.exe from:
ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe

Comments

ray.burgemeestre said:

You're instructions helped delete 200.000 e-mails from the same sender (queue kept on growing, probably due to some bug in the email source i guessed). First tried deleting via: Microsoft Exchange -> System Manager -> (..) Queues -> Find messages... etc.

And that tool is extreeemely slow, it showed 50 messages every 10 seconds or so.. ;)

Therefore, I thank you

# November 22, 2007 9:36 AM