Easily delete ALL mail in the queue Cleaning Up the Exchange Server's SMTP Queues Warning: This process will delete all email that is due to go to external recipients. Internal messages are not affected, neither are new inbound messages from the Internet. Capturing the Messages Into a Single Queue This process requires an SMTP connector for all addresses. If you don't already have one (with a * on the namespace tab) then you need to create one using the instructions below. If you already have an SMTP Connector with a * on the namespace tab, then you can use it for this process. You will need to adjust the settings as appropriate. You may wish to just make a note of the settings, delete the connector and create a new one for this process. When complete recreate your live connector.
In ESM, Routing Groups, , Connectors. Right click on connectors and choose New, SMTP Connector. On the "General Tab" type a name for the connector. "Spam Cleanup" or similar. Click the "Add" button under "Local Bridgeheads" and choose your Exchange server. Click on the "Address Space" tab. Click "Add" and choose SMTP. Leave each setting (* and cost of 1) and press ok. If all the spam is to one domain,then remove the * and enter the domain that the messages are being sent to. This should leave legitimate messages in the queue. Click on the General tab again. Change the option in the centre from DNS to "Forward all mail through this connector to the following smart hosts". Enter an invalid IP address in square brackets: [99.99.99.99]. Click on the "Delivery Options" tab and ensure that "Specify when messages are sent through this connector" is selected. Change the option to 11pm. (If it is close to 11pm when you are doing this, use a much earlier time - 6am or similar. The time doesn't matter as long as it is not close). Press Apply/OK to close the SMTP Connector dialogue. Restart SMTP Virtual Server. Expand Servers, , Protocols, SMTP. Right click on the "Default SMTP Virtual Server" Choose "Stop". This may take a few minutes. Once it has stopped, right click again and choose "Start".
The Exchange SMTP virtual server is now processing all the messages and placing them in to a single queue for your... SMTP connector. This can take some time. You may want to wait until the number of messages in the queue stays constant before attempting the next stage. Exchange 2000: The queues can be found in Servers, , Protocols, SMTP.
Exchange 2003: The queues can be found in Servers, , Queues.
To locate the required queue, look for a small red clock on the yellow icon. This indicates that it is on a timed delivery.
Alternative Queue Clean Up Method If you have a very large number of messages, then there is a command line tool that you can get from Microsoft. ftp://ftp.microsoft.com/pss/Tools/
Then go in to the folders: Exchange Support Tools / Aqadmcli
(Due to the use of spaces in the folder names, a direct link isn't possible) After downloading the utility use the following command to clear all the queues.
aqadmcli delmsg flags=all
|