Created
August 26, 2011 21:02
-
-
Save GuilhermeBarile/1174437 to your computer and use it in GitHub Desktop.
mass delete for postfix mail queue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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