Reese Knowledgebase

postfix: display, flush, delete mail from queue

View Kristian Reese's profile on LinkedIn

If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 122
by: Reese K.
Posted: 28 Aug, 2013
Last updated: 18 Oct, 2013
Views: 2664

Here are some common postfix commands I use when combating SPAM accounts.

postfix flush
postfix -f
mailq | wc -l

remove all mail
it does what it says so watch it!

postsuper -d ALL
remove all deferred mail postsuper -d ALL deferred

If you'd like to view the content of one of the emails, first obtain the message id:

postqueue -p

Once the message id is obtained, you read it with:

postcat -q messageid

This article was:   Helpful | Not Helpful
Prev   Next
Setting relayhost in postfix     turning off auto indent and comments in vi