pmailq.pod 2.8 KB

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