Is there an application that can link all the mail processing steps together from connection to delivery in a way that shows the whole process and the decision live?
I know it's possible to tail -f /var/log/mail.log, but when there becomes a large amount of connections and internal steps (client authorisation, recipient authorisation, relays, bounces, etc.) this log can become quite time-consuming and prone to missing steps.
I'm thinking something a bit like "top" but for email.
e.g.
- connect from 1.2.3.4
- client denied/accepted, mail from, to
- recipient address verified/bounced
- policy checked, antispam, antivirus.
- relayed/delivered to...
This could then be shown in a top-like display like:
CONNECT FROM TO POLICY DELIVERY RESULT
example.com [1.2.3.4] me@example.com you@example.com OK Maildir 2.5.0 OK
spam.com [1.2.4.5] bad@spam.com you@example.com SBL Fail Reject 5.7.1 Deny
1.2.4.6 NO_FQDN Reject 4.7.1 Retry
(Excuse the oversimplification)
Additionally, this could be used to build/store statistics on mail acceptance/rejection which could, in turn, be used to spot accidental misconfiguration. Has anyone seen anything like this?