PMAILQ(8)
π PMAILQ(8) β bestie's guide to pmailq π
okay so. pmailq?? the Postfix Mail Queue manager?? yeah. she's that girl. let's get into it π«Ά
β¨ NAME β¨
pmailq β the Postfix Mail Queue manager. she manages the mail queue. that's the whole vibe. π
πΈ SYNOPSIS πΈ
pmailq [OPTION]... [COMMAND]
pmailq --help
π¦ DESCRIPTION π¦
so basically pmailq takes the output of the Postfix mailq command and does stuff with it. iconic behavior honestly. she can:
- list the queued messages,
- parse them (machine-readably, no cap),
- or delete them in batches. π
and how do you pick which ones? you can select by size, by queue status, and by pattern matching (with wildcards, yes queen) on recipient addresses and server error messages. the way she just... filters. π
π COMMANDS π
this is the action to perform on the selected entries, bestie. pick your fighter:
list(this is the default command) β shows a detailed listing of the selected entries (viapostqueue -p).parseβ shows a listing of the selected entries in a machine readable format. nerdy. we love her. π€delβ deletes the selected entries (viapostsuper -d). bye bitch π
π OPTIONS π
-e PATTERN,--email=PATTERNβ select entries in queue with email matching PATTERN. (PATTERN accepts wildcards, go wild β¨)-m PATTERN,--msg=PATTERNβ select entries in queue with error message matching PATTERN. (PATTERN accepts wildcards too, periodt)-l SIZE,--size-lower=SIZEβ select entries in queue with size lower than SIZE bytes.-u SIZE,--size-upper=SIZEβ select entries in queue with size upper than SIZE bytes.-aβ select'active'entries in queue. she's up and she's doing things π-oβ select'on hold'entries in queue. she's on pause, respect it π--versionβ show program's version number and exit.-h,--helpβ show this help message and exit.
π EXAMPLES π
Example 1 πΈ
display all the entries in queue sent to an email address matching "*@example.com*" with a size between 3000 and 3200 bytes in a machine readable format:
# 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)
look at that little diagram bestie, she's literally annotating herself π the way the \'s just point at the fields... iykyk.
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]
six for six. she ate and left no crumbs. π
π SEE ALSO π
postsuper(1)β privileged queue operations πpostqueue(1)β mail queue control π
π AUTHOR π
Emmanuel Bouthenot <kolter@openics.org> β the icon, the legend, the moment. π«Ά
β COPYRIGHT AND LICENSE β
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. yes that's the real name, i am not joking, it is giving unhinged and we respect it deeply. πβ¨
See http://sam.zoy.org/wtfpl/COPYING for more details.
ngl this is one of the most unbothered licenses in existence and honestly? main character energy. no cap. π
anyway bestie, that's the whole page, pmailq(8), from the PMAILQ(8) manual. go clear that queue. slay ππ¦πΈ
π¦ where this page comes from
- debian bookworm: pmailq 0.7-1 Β· other-BSD
- debian trixie: pmailq 0.7-1 Β· other-BSD
- ubuntu jammy: pmailq 0.7-1 Β· other-BSD
- ubuntu noble: pmailq 0.7-1 Β· other-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms