Every Exchange Server administrator will eventually have to deal with an SMTP queue that's choked with message...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Sometimes an SMTP queue can be flooded by thousands of non-delivery reports (NDRs) due to spam; and sometimes it can be caused by undeliverable email that has been mistakenly auto-generated.
Clearing the SMTP queue usually involves deleting the files in the queue directory through Windows Explorer or a del *.* command -- but these aren't the only ways to handle the problem.
One way that works directly with Exchange Server instead of through the file system is a command-line utility called AQADMCLI. It sounds like a Roman numeral, but it's actually a tool that Microsoft used to only make available for Exchange Server customers through calls to Product Support Services.
SearchExchange.com contributor Brien M. Posey mentioned AQADMCLI a couple of years ago in his tip, "Stay above the SMTP queue floods". But back then, it was only available as a PSS support-call utility. Now it is freely available for download from Microsoft's FTP site.
To empty out an SMTP queue using AQADMCLI, run it from the command line and type in the following commands:
<servername> is, of course, the name of the Exchange server containing the queue you want to manage.
If you want to delete messages by specific criteria instead of just dumping everything, the delmsg command can be given specific flags (as the above syntax implies).
For instance, if you type delmsg flags=SENDER,email@example.com, all messages sent by firstname.lastname@example.org will be flagged for deletion.
Run AQADMCLI HELP and you'll get a complete dump of all the available commands and their syntax.
About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.
Do you have comments on this tip? Let us know.
Related information from SearchExchange.com:
Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.
Dig Deeper on Microsoft Exchange Server Administration Tools