Delete mail from specific sender from postfix queue

Print Friendly

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 = "" } /username@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published.