Binary package “pmailq” in ubuntu oracular

Postfix mail queue manager

 pmailq processes the output of the Postfix mailq command, and can list, parse
 (machine-readably), or delete queued messages in batches. They can be selected
 by size, by queue status, and by pattern matching (with wildcards) on
 recipient addresses and server error messages.