Postfix Mail Queue Management

This is more as a reminder for myself than anything else since I tend to forget Postfix commands unless I use them regularly.

To see all mails in the current queue:

mailq

To flush the mail queue run:

postfix flush

To remove all the mail from the queue (ie. delete it) run:

postsuper -d ALL

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

Leave a comment

Your email address will not be published. Required fields are marked *

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

Exit mobile version