Useful Postfix commands and logs

Some useful postfix commands and logs

Postfix logs location

/usr/local/psa/var/log/maillog

or

/var/log/maillog

Queue located here

/var/spool/postfix

Calculate queue

mailq | grep Requests

Detail calculation

mailq

or

postqueue -p

In order to view message ID just use

postcat /var/spool/postfix/deferred/E/E9E4CA5EF42

Remove queue

postsuper -d ALL

or

cd /var/spool/postfix
find . -type f -exec rm -f {} \;

Also you may remove particular emails

mailq|grep ‘[email protected]’|awk ‘{print $1}’|xargs -J{} -n1 postsuper -d {} deferred

Similar Posts:

    None Found

Leave a Reply

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