Delete all e-mail from specific address in postfix

Found this neat thing for deleting all e-mails from a specific user (in this case MAILER-DAEMON):
mailq | grep MAILER-DAEMON | awk ‘{print $1}’ | tr -d ‘*’ | postsuper -d –

This was found at http://tgrove.com/2008/01/15/postfix-delete-all-mailer-daemon-emails/

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.