Deleting from postfix queue by regex

postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / baddab@spammer.com/ { print $1 }' | tr -d '*!' | postsuper -d -

Leave a Reply

Your email address will not be published. Required fields are marked *