Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question

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

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

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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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