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

Source: http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html

Was this answer helpful?

 Print this Article

Also Read

Apache - Address already in use: make_sock: could not bind to address

Apache - Address already in use: make_sock: could not bind to address This error message can be...

Slow ssh authentication

Problem: ssh login takes up to 30 seconds. Solution: It is likely to be a Reverse DNS issue....

Improve ProFTPD performance

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

FTP uploads have wrong permissions

When files are created in a folder via FTP, the permisions are not set to those of the folder....

Run .cgi outside cgi-bin directory

By default runs CGI scripts in /cgi-bin/ folder only. To allow CGI scripts be processed from...