List of helpfull command that used to help me when maintaining Postfix mailserver. I can put many things to my head so i create this cheatsheet to help me with postfix administration.

Hemat Pangkal Kaya

Insignificant one

List mail queue and MAIL_ID’s, list mail queue


Check the postfix version

Get default value set on the postfix config

Get non default value set on the postfix config

Flush the mail queuw

Force to send the queue

Process all emails stuck in the queue

Read email from mail queue

Remove certain mail from mail queue

Remove all mail queue

Fast method to remove mail from queue

Remove all the deferred mail in queue

Sorting email with “from address” filter

Remove all email that sent to [email protected]

Remove all email sent from [email protected]

Remove all email sent from the dom.ain

Mail queue stats short

Number of emails in Mail queue

Fast count of emails in mail queue

Watch Log Live

Count and sort success pop3/imap logins

Count and sort success SMTP postfix logins. This is usefull when you want to track a compromised account.

Count and sort success SMTP postfix logins on exact date “May 18”

Analyze Postfix Logs

You may need to install the pflogsumm package first.

Previous ArticleNext Article

Leave a Reply

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