Howto analyse Postfix
This howto describes how to do senseful things with your postfix logs.
Introduction
This howto is in a very early stage. Its aim is to provide mail server admin some help on how to analyse their postfix logs. More information will follow soon. If you have a comment, just drop me an email.
Howto...
Detect delivery problems
Simply use
tail -F /var/log/mail.log | grep "status=deferred"
Trigger delivering of mails in the queue
Use either- mailq
- sendmail -q
- postqueue -f
Display message in the queue
- sendmail -bp
- postqueue -p
- showq
Display warnings
tail -F /var/log/mail.log | grep warning
Easy, isn't it?
Display blocked incoming mails
tail -F /var/log/mail.log | grep NOQUEUE