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