Managing Qmail with qmHandle

qmHandle is a great tool that can be used to manage your qmail queues.
It’s written in Perl so very fast and is great for clearing large queues on your server.

Here is some of the copy and paste examples I use on an almost daily basis:

 

Show current queue stats:

qmHandle -s

List messages in the mail queue:

qmHandle -l

List messages in the mail queue while counting how many have the same subject :

qmHandle -l|grep Subject|sort| uniq -c|sort -n

Read a message in the queue:

qmHandle -m123456789

Delete a message in the queue:

qmHandle -d123456789

Delete all messages in the queue:

qmHandle -D

Delete a message based on sender:

qmHandle -ftest@test.com

Delete a message based on subject:

qmHandle -S”failure notice”

Leave a Reply