Last active
June 30, 2022 19:20
-
-
Save carlos-teles/0a3398278bb52b6e8465f2bd963b72b1 to your computer and use it in GitHub Desktop.
Delete mails from postfix queue
This file contains hidden or 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
mailq | grep xxxxx\@google.com.br | awk '$7~/@/{print$1}' | while read qid; do postsuper -d $qid; done | |
mailq | grep MAILER | awk '{print$1}' | while read qid; do postsuper -d $qid; done | |
mailq | grep MAILER-DAEMON | awk '$7~/@/{print$1}' | while read qid; do postsuper -d $qid; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment