Linux Sysadmin Blog

HowTo Delete All Emails From the Postfix Queue

- | Comments

I must admit that postfix queue management is definitely not the simplest one. I often get asked how you can remove all the emails that are in the mail queue on a postfix server (probably to delete a spamming abuse or some error, or whatever). This should be something very simple to do right? And actually it is very simple. All you have to do is to run as root: postsuper -d ALL or using sudo: sudo postsuper -d ALL this will delete instantly all the emails in the queue without any warning (be sure you know what you are doing when running this) and will just output the result (xxx messages deleted).