Postfix: Delete all emails from specific domain

In one shot:

 postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /@domain\.tld/ { print $1 }' | tr -d '*!' | postsuper -d -
This entry was posted in Uncategorized. Bookmark the permalink.