Thursday, February 21, 2013

Delete ALL SMTP Queues In Exchange 2007 (Quick and Dirty)


------------------------------------------------------------------------------------------
Delete ALL SMTP Queues In Exchange 2007

In essence, to completely wipe out the queues in Exchange 20007 perform the following steps:


  1. Stop Exchange Transport
  2. Browse to the folder where mail.que is stored (our server was in mail.que at c:\program files\Microsoft\Exchange Server\TransportRoles\data\Queue)
  3. Delete or move everything there
  4. Start the Exchange Transport
  5. Open up Queue Viewer, and verify that every thing's cleared..Exchange has now recreated mail.que and associated files like in the beginning of time.

Note: The physical path of the mail queue which also could be found by looking for the file mail.que like above. Since the mail queues are ESE, simply removing the mail.que file may not work (just like removing the edb/stm file without removing the related transaction logs)

Start the Exchange Transport Service again if you want to start the queue/mails again.

No comments: