Wednesday, April 8, 2009

Windows Server 2003 SBS Exchange Server Queue stuck

A user here was complaining about getting time out messages. In checking the Exchange SMTP queue, I noticed that there were 2 messages that seemed to not be going anywhere.

All other email addresses worked. However, when the user tried to send messages to these domains, they would get stuck.

I found a few expert exchange posts that got me over the problem, but they didn't seem to solve the issue. Given that there are so many other things to do, i fear that this will be an issue later.

I suppose it is the classic balancing act of how much time this takes me vs the other stuff I do that makes the company money.

http://windowsitpro.com/article/articleid/39651/clearing-a-blocked-exchange-smtp-message-queue.html

From http://www.experts-exchange.com/Software/Server_Software/Q_22588650.html:
Download AQADMCLI, from Microsoft
ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/


To empty out an SMTP queue using AQADMCLI, run it from the command line and type in the following commands:

setserver
delmsg flags=all
quit

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,sender=user@s
ite.org, all messages sent by user@site.org will be flagged for deletion.

Run AQADMCLI HELP and you'll get a complete dump of all the available commands and their syntax.

This cleared the queue.. all is well.. so far