pmailq.pod 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. =head1 NAME
  2. pmailq - Postfix MAIL Queue manager
  3. =head1 SYNOPSIS
  4. pmailq [I<OPTION>]... [I<COMMAND>]
  5. pmailq B<--help>
  6. =head1 DESCRIPTION
  7. pmailq parse output of B<mailq> command from postfix (ie: I<postqueue -p>) to perform some
  8. actions on selected entries. The selected entries are filtered by applying filters on criterias
  9. like email address, error message from smtp server, message size, mail state in queue.
  10. =head1 COMMANDS
  11. Action to perform on selected entries.
  12. =over 2
  13. =item B<list> (default command)
  14. show a detailed listing of the selected entries
  15. =item B<parse>
  16. show a listing of the selected entries in a machine readable format
  17. =item B<del>
  18. delete (via I<postsuper -d>) selected entries
  19. =head1 OPTIONS
  20. =over 2
  21. =item B<-e> I<PATTERN>, B<--email>=I<PATTERN>
  22. select entries in queue with email matching PATTERN
  23. =item B<-m> I<PATTERN>, B<--msg>=I<PATTERN>
  24. select entries in queue with error message matching PATTERN
  25. =item B<-l> I<SIZE>, B<--size-lower>=I<SIZE>
  26. select entries in queue with size lower than SIZE bytes
  27. =item B<-u> I<SIZE>, B<--size-upper>=I<SIZE>
  28. select entries in queue with size upper than SIZE bytes
  29. =item B<-a>
  30. select 'active' entries in queue
  31. =item B<-o>
  32. select 'on hold' entries in queue
  33. =item B<--version>
  34. show program's version number and exit
  35. =item B<-h>, B<--help>
  36. show this help message and exit
  37. =head1 EXAMPLES
  38. =over 1
  39. Example n°1 : display all the mails in queue to "*@example.com*" with a size between 3000 and 3200 bytes in a machine readable format :
  40. # pmailq -u 3000 -l 3200 -e "*@example.com" parse
  41. 7E75214643A4|Fri Aug 31|3154|1|0|edgar@example.com
  42. B0BDE146B640|Thu Aug 30|3199|1|0|paul@example.com
  43. B587E146B675|Wed Aug 29|3065|0|0|paul@example.com
  44. CF3C514656E4|Wed Aug 29|3161|0|0|abuse@example.com
  45. /\ /\ /\ \ \
  46. queue id date size \ \ on hold (or not)
  47. \ active (or not)
  48. Example n°2 : remove all mails in queue not sent because of a connection time out :
  49. # pmailq -m "*connection*timed*out" del
  50. deleting 00CF514616D3 [OK]
  51. deleting 12D911461924 [OK]
  52. deleting 269EF1461CA9 [OK]
  53. deleting 288DF1461CA0 [OK]
  54. deleting 3B3901460F62 [OK]
  55. deleting 3AE58147019F [OK]
  56. =head1 SEE ALSO
  57. L<postsuper(1)> privileged queue operations, L<postqueue(1)> mail queue control
  58. =head1 AUTHOR
  59. Emmanuel Bouthenot <kolter@openics.org>
  60. =head1 COPYRIGHT AND LICENSE
  61. Copyright 2007 by Emmanuel Bouthenot <kolter@openics.org>
  62. This program is released under the "do What The Fuck you want to Public Licence"
  63. Version 2, as published by Sam Hocevar.
  64. See http://sam.zoy.org/wtfpl/COPYING for more details.
  65. =cut