Skip to content

Instantly share code, notes, and snippets.

@Crash--
Created October 16, 2012 16:21
Show Gist options
  • Save Crash--/3900328 to your computer and use it in GitHub Desktop.
Save Crash--/3900328 to your computer and use it in GitHub Desktop.
Postfix : Remove messages from/to a specific from your queue
#change foo.bar@gmail\.com
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / foo.bar@gmail\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment