I am a Linux admin and I have to manage some Windows hosts too. I want to flush the mails for a particular mailbox in Exchange 2007. How I can do that ?

link|improve this question

1  
Can you describe what you mean by "flush the mails" - do you want to delete the whole mailbox of a user? – mfinni Sep 15 '10 at 20:12
feedback

migrated from superuser.com Sep 15 '10 at 20:03

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 0 down vote accepted

If you mean flush just like you would on postfix, then I know what you mean. Open up Exchange Management Console on the machine and run this command:

get-queue –SortOrder:-MessageCount 

You'll get a list of all the message queues that have undelivered mail, you can then:

retry-queue ID-OF-QUEUE

As far as flushing a particular mailbox of an actual user I don't think there's a way, but you can re-attempt delivery for specific delivery destinations with the above commands. For more good information on dealing with Transport Queues in Exchange see: http://www.exchangeninjas.com/troubleshootingexchange2007transportqueuingproblems

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.