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)

4 comments:

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.

Anonymous said...

After you have removed the old queue and started the service you will need to wait minutes or so before mailflow is restored.

Credit Loan Solution said...

Are you tired of seeking loans and Mortgages,have you been turned down constantly By your banks and other financial institutions,We offer any form of loan to individuals and corporate bodies at low interest rate.If you are interested in taking a loan,feel free to contact us today,we promise to offer you the best services ever.Just give us a try,because a trial will convince you.What are your Financial needs?Do you need a business loan?Do you need a personal loan?Do you want to buy a car?Do you want to refinance?Do you need a mortgage loan?Do you need a huge capital to start off your business proposal or expansion? Have you lost hope and you think there is no way out, and your financial burdens still persists? Contact us (gaincreditloan1@gmail.com)

Your Name:...............
Your Country:...............
Your Occupation:...............
Loan Amount Needed:...............
Loan Duration...............
Monthly Income:...............
Your Telephone Number:.....................
Business Plan/Use Of Your Loan:...............
Contact Us At : gaincreditloan1@gmail.com
Phone number :+44-75967-81743 (WhatsApp Only)

joemill00077711 said...

Would you be involved in exchanging hyperlinks? casino blackjack