I am generalny using postfix-logwatch for tracking log files.
However, I was thinking about something that is working in real time,
scripts can be run by cron in some period time.
Then the best could be write some syslog phraser or redirect syslog to some
application eg. written in Java to interpret log file in realtime.
2018-02-12 17:59 GMT+01:00 Wietse Venema <wie...@porcupine.org>:
> > I would like have policy service that will be able to write do data base
> > some information eg. when exactly message was sent, message ID, DSN if
> > soemthing goes wrong. That means it should be working with Postfix queue.
> You can use "postqueue -j" to get a machine-readable queue listing
> with arrival time, and why mail is still in the queue.
> However for historical information of past deliveries you will have
> to rely on Postfix logs.