postqueue -j

Category: Mail Servers & Postfix

postqueue -j

List the mail queue as JSON for scripts

Outputs every queued message as one JSON object per line, with queue ID, sender, recipients, and delay reason. Scriptable, unlike the human `-p` view. Pipe through jq to select messages, then feed IDs to postsuper.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.