Tuesday, August 7, 2012

Exchange 2010 Clearing out all mail in the mail queues

 

Scenario:

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.

image

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*

image

Get-Service MsExc* |FL

image

image

Get-Service MsexchangeTransport

image

Stop-Service MsExchangeTransport

image

Start-Service MsExchangeTransport

once this is done drill down to this directory

image

Select everything and delete them

image

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

image

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

http://technet.microsoft.com/en-us/library/bb123535.aspx

http://blogs.technet.com/b/exchange/archive/2010/10/27/removing-specific-messages-from-your-exchange-server.aspx

Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/(Blog)http://telnet25.wordpress.com/ (Blog)

2 comments:

Anonymous said...

After see your site ,I feel so good.If you want I exchange my link with you .This will so better increase our PR .Some of my Keyword is bangla choti,bangla choti story,bangladeshi choti,bangla choti book,kolkata choti,free choti,bangla choti online,Bengali choti,bangla choti blog,bangla choti golpo
If you search in google by this keyword you find my site.

Genie said...

Thread digging, this helped me, but... Stop the service THEN delete the queue THEN start the service. You stop then start the service then say delete the queue. This is wrong and fails because the queue is in use again, file lock yadda yadda. Hope this helps.