How to delete Postfix Queue

Posted under » Linux on 1 July 2017

To list all emails in Postfix queue

postqueue -p
or 
mailq

To delete or flush all emails from Postfix

postsuper -d ALL
#or only defferred
postsuper -d ALL deferred

If you want to remove a specific email you search the ID of that email first

postqueue -p | grep "tonykfc@lkybast.com"
056CB129FF0*    5513 Sun Apr 26 02:26:27  tonykfc@lkybast.com

To delete

postuser -d 056CB129FF0

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS