Skip to content

Instantly share code, notes, and snippets.

@carlos-teles
Last active June 30, 2022 19:20
Show Gist options
  • Save carlos-teles/0a3398278bb52b6e8465f2bd963b72b1 to your computer and use it in GitHub Desktop.
Save carlos-teles/0a3398278bb52b6e8465f2bd963b72b1 to your computer and use it in GitHub Desktop.
Delete mails from postfix queue
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