Emergency Outgoing Queue clearance Exchange 2000/2003

Microsoft Exchange Microsoft Windows

I had some amusement when someone tried sending a 1MB email to 400 people and the server was set for direct delivery. It flattened out the ADSL and caused lots of problems, first job was to click the “disable outbound mail” button in the Exchange System Manager under queues. Then temporarily close port 25 on the firewall for inbound and outbound mail.

Then you can manually remove the mails from all the queues but that would take ages instead I used a program called aqadmcli.exe to clear it all out quickly from the CLI.

All sent by mailshot@mydomain.co.uk

Stopped port 25 inbound and outbound on the Firewall.

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

setserver “myservername”

delmsg flags=all

Or you can:

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

setserver “myservername”

delmsg flags=sender,sender=mailshot@mydomain.co.uk

You can download aqadmcli.exe from:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe

Leave a Reply

Your email address will not be published.