Postfix Mail Queue admin Commands

Here are a few useful commands for managing a Postfix Email Server Mail Queues.

List queued emails (detailed):
mailq
postqueue -p

Show email information:
postcat -q Email_ID

Flush the mail queue:
postqueue -f

Care should be taken, not to appear like a spammer. This could occur if you keep flushing the queue of emails, which are continally rejected.

Delete a specific email:
postsuper -d Email_ID

Delete all emails in the queue:
postsuper -d ALL

Delete all deferred emails:
postsuper -d ALL deferred

Requeue a specific email (reschedule it for delivery):
postsuper -r Email_ID

Show Postfix main status and config:
postfix status