Clear postfix mail queue

Show Queue
Postqueue -p

Delete mail to/from mailbox

postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / info@mailbox\.co\.uk/ { print $1 }' | tr -d '*!' | postsuper -d -

Clear Postfix Queue
postsuper -d ALL

or just defered mail

postsuper -d ALL deferred


Was this answer helpful?

 Print this Article

Also Read

Install SNMP (Centos)

Centos6yum -y install snmp Centos7yum install net-snmp net-snmp-utils rename the file:...

How to change mail server ip address for qmail

1) first check the domain names which are configured on the server by viewing following file...

Increase MySQL Max Connections

To increase the maximum connections that mysql allows, you must edit the file /etc/my.cnf. Log...

Remove malicious web code

Improve ProFTPD performance

A quick fix to fix connectivity or slow connection issues when using ProFTPD is to edit some of...