Category Archives: Postfix

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/