This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
internet:mail:postfix_queue_mgmt [2014/05/02 10:58] gcooper |
internet:mail:postfix_queue_mgmt [2018/11/02 07:11] (current) gcooper |
||
---|---|---|---|
Line 58: | Line 58: | ||
==== Purge Mail Queues ==== | ==== Purge Mail Queues ==== | ||
- | Delete | + | To delete all email in the queue from a domain run this command as root: |
+ | |||
+ | postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" | ||
+ | |||
+ | To delete all email in the queue From: a specific email address run this command as root: | ||
+ | |||
+ | postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" | ||
+ | |||
+ | To delete | ||
< | < |