MsExchange Blog Spot Telnet25

August 7, 2012

Exchange 2010 Clearing out all mail in the mail queues

Filed under: General — telnet25 @ 5:42 pm

 

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)https://telnet25.wordpress.com/ (Blog)

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: