Delete email with a specific email address from the Postfix queue…

HowtoForge still comes in handy. This is one of those times:

mailq | awk 'BEGIN { RS = "" } / falko@example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -

File under “what to do when postfix goes berserk”.

Leave a Reply

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