Skip to content

Instantly share code, notes, and snippets.

@GuilhermeBarile
Created August 26, 2011 21:02
Show Gist options
  • Save GuilhermeBarile/1174437 to your computer and use it in GitHub Desktop.
Save GuilhermeBarile/1174437 to your computer and use it in GitHub Desktop.
mass delete for postfix mail queue
# delete mail from some@email.com
mailq | grep some@email.com | cut -d" " -f1 |tr -d '*' | xargs -L1 postsuper -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment