Skip to content

Instantly share code, notes, and snippets.

@welrbraga
Last active December 11, 2017 16:30
Show Gist options
  • Save welrbraga/26384b53c0038738846789ad49ef1ffc to your computer and use it in GitHub Desktop.
Save welrbraga/26384b53c0038738846789ad49ef1ffc to your computer and use it in GitHub Desktop.
Remover todas as mensagens de um determinado domínio da fila de entrega do Postfix
DOMAIN="@dominiomaildito.com" ; postqueue -p |awk '/'$DOMAIN'/ { system("postsuper -d "$1) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment