Hi guys,
First and foremost, apologies if this message shouldn't be going to this
list, but it seemed like the logical place.
I have written a small tool for Postfix in Python that duplicates most of
the functionality of exiqgrep, a tool that comes bundled with Exim making
it easier for mail administrators to find messages in the queue. I've
been using it for a couple of months now with great success (Postfix
2.3.3), so I thought I'd share it with the Postfix community in the hopes
that some of you may find it useful.
The tool is available at http://draenor.org/public/python/pqgrep.py
Should you find any bugs/problems, please mail me.
Some examples:
o List the message ID's for messages with a sender off x...@moo.com:
pqgrep.py -s x...@moo.com -i
o Show messages with a recipient of a...@b.c and provide log messages:
pqgrep.py -r a...@b.c -l
o Delete all messages from MAILER-DAEMON:
for i in `pqgrep.py -s MAILER-DAEMON` ; do postsuper -d $i ; done
Thanks,
Marc