Postfix Tips and Tricks

From Free Knowledge Base- The DUCK Project
Revision as of 08:55, 1 August 2014 by Admin (talk | contribs) (Created page with "== Inspecting Postfix’s email queue == === list of queued mail === Including deferred mail and pending for delivery. command: mailq The command 'postqueue -p' does the s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Inspecting Postfix’s email queue

list of queued mail

Including deferred mail and pending for delivery.

command:

mailq

The command 'postqueue -p' does the same thing as 'mailq'

process the queue now

postqueue -f

The command 'postqueue -f' does the same thing as 'postfix flush'

delete / clear the queue now

postsuper -d ALL

selective delete from queue

postsuper -d ALL deferred

inspecting queue

You can view the specific message in queue if you have the id

postcat -vq F276B2C0EA8 > themessage.txt

Replace 'F276B2C0EA8' with the postfix id of your message.