MsExchange Blog Spot Telnet25

August 7, 2012

Exchange 2010 Clearing out all mail in the mail queues

Filed under: General — telnet25 @ 5:42 pm



Al of a sudden you have figured out there are thousands of messages are queued up on your Edge server and you have identified all these messages are spam etc.


End goal:

you need to delete all mails within the queue folder as quick as possible

On the Edge Server  Stop Transport Service

Get-Service MsExc*


Get-Service MsExc* |FL



Get-Service MsexchangeTransport


Stop-Service MsExchangeTransport


Start-Service MsExchangeTransport

once this is done drill down to this directory


Select everything and delete them


Once you re-start the transport service , the required files will be put in there and all queues will be cleared out


This is quick and dirty way of dealing with un-wanted mails if there are mails in the queues which you have business purpose you can be more sophisticated with this PS command

Remove Messages from Queues

Oz Casey, Dedeal ( MVP north America)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server + (Blog)


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: