Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're trying to delete 80% or 90% of the emails from a ~200k message queue. Ideally, we would be able to select the messages using regex.

I can see the messages in the queue folder, but just deleting the files seems dangerous.

Are there any utilities or established patterns for doing this?

share|improve this question
up vote 1 down vote accepted

There is no built in way. You can google for qmail-delete or a tool like

share|improve this answer

I usually use qmHandle.

share|improve this answer

Your Answer


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.