Qmail Queue Tool (qqtool.pl)
This program will allow you to search and view messages in your qmail queue. It will also allow you to remove them, via expiration or deletion. It was written by Matt Simerson for the toaster users on firstname.lastname@example.org
Run the script without any parameters and it will show you a menu of options.
To list messages in queue from matt:
To list messages in queue with string "foo" in the headers:
There are two settings you can alter:
If you aren't using the defaults (/var/qmail/queue, /service/send"), edit qqtool.pl and adjust those values.
Expiring messages does not remove them from the queue. It merely alters their expiration time. The messages will be removed from the queue after qmail attempts to deliver them one last time.
In list mode, when showing messages in the queue, show which addresses delivery has failed for, so you know exactly why a message is still in the queue (useful for mailing lists with many recipients)
Last modified on 4/8/05.