Dariusz on Software Quality

26/11/2009

How to drop current postfix queue

Filed under: en — Tags: — dariusz.cieslak @

How to drop selected emails from postfix queue (useful when many automated e-mails are blocking it):

# mailq | awk '/^[A-Z0-9].*some.email@domain.com/ {print "postsuper -d " $1} ' | sh

or simpler: purge all queue (warning: you can loose important, undelivered e-mails forever!):

# postsuper -d ALL

1 Comment »

  1. Thanks for this post… It helps me today… ;)

    Regards.

    Comment by Regis M — 03/05/2011 @

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress