PMAILQ(8) | PMAILQ(8) |
pmailq - Postfix MAIL Queue manager
pmailq [OPTION]... [COMMAND]
pmailq --help
pmailq parses the output of mailq command from postfix (ie: postqueue -p). It permits to perform some actions on a group of entries in queue (like removing or displaying them in a machine readable format). They are selected by applying filters (wildcards are allowed) on criterias like email address, error message from SMTP server, message size, mail status in queue.
Action to perform on selected entries.
# pmailq -u 3000 -l 3200 -e "*@example.com" parse 7E75214643A4|Fri Aug 31|3154|1|0|edgar@example.com B0BDE146B640|Thu Aug 30|3199|1|0|paul@example.com B587E146B675|Wed Aug 29|3065|0|0|paul@example.com CF3C514656E4|Wed Aug 29|3161|0|0|abuse@example.com /\ /\ /\ \ \ queue id date size \ \ on hold (or not) \ active (or not)
Example 2: remove all mails in queue not sent because of a connection time out:
# pmailq -m "*connection*timed*out" del deleting 00CF514616D3 [OK] deleting 12D911461924 [OK] deleting 269EF1461CA9 [OK] deleting 288DF1461CA0 [OK] deleting 3B3901460F62 [OK] deleting 3AE58147019F [OK]
postsuper(1) privileged queue operations, postqueue(1) mail queue control
Emmanuel Bouthenot <kolter@openics.org>
Copyright 2007-2011 by Emmanuel Bouthenot <kolter@openics.org>
This program is released under the "do What The Fuck you want to Public Licence" Version 2, as published by Sam Hocevar.
See http://sam.zoy.org/wtfpl/COPYING for more details.
2011-01-05 |