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 -


Comments (No responses yet)