Postfix Mail Queue Management

Postfix is a mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Newer versions of Plesk install with Postfix as the default mail server but when upgrading older versions of Plesk, Qmail may remain the default mail server. It is suggested to use Postfix, as it is an actively maintained mail server package widely used in production environments

# View emails in the queue

postqueue -p

# read email from mail queue (header and body)

postcat -q MAIL_ID

# number of emails in Mail queue

postqueue -p | grep -c "^[A-Z0-9]"

# Flush the queue: attempt to deliver all queued mail.

postqueue -f

To remove all mail from the queue :

# postsuper -d ALL

To remove all mails in the deferred queue :

# postsuper -d ALL deferred

If you have further queries talk to our Server Helpdesk Support experts to understand the steps better. 

We provide cPanel Server Management services and a wide variety of services in Handling cPanel servers. Talk to our experts to learn more. 

Facebook Comments