postfix-logo

1– Manage postfix queue

To watch the queue just launch this command:
#postqueue -p

To delete a single mail, get the message ID with “postqueue –p” and launch this command:
#postsuper –d queue_id

To delete the queue just launch this command:
#postsuper –d ALL

To see the number of email sent to each domain and their time in the active queue:
#qshape active

To see the number of email sent to each domain and their time in the active queue:
#qshape deferred

Try to send again a single message:
#postqueue –i queue_id

Try to send again all mails in the queue:
#postqueue -f

Lock a message in the queue:
#postsuper –h queue_id

Release a message in the queue:
#postsuper –H queue_id

Show the content of a message in the queue:
#postcat queue_id

 

2 – Manage postfix daemon

Launch the daemon:
#service postfix start

Stop the daemon:
#service postfix stop

Get the status and PID:
#service postfix status

Reload the daemon:
#service postfix reload

 

3 – Manage configuration changes

After each change of the configuration file you should launch a check to see if your file is correct:
#postfix check

List of the log files:
Statistics: /var/log/mail/statistics
Mail logs: /var/log/maillog
General logs concerning general issue with the daemon: /var/log/messages

Publicité