postfix / (mass) remove mails from queue

A little hack to remove mails for a specific recipient from the postfix mail queue:


mailq | tail +2 | awk 'BEGIN { RS = "" } \
/ user@example\.tld$/ { print $1 } \
' | tr -d '*!' | postsuper -d -