I need to find out if an outgoing message was successfully delivered or not.
I know this can be achieved by setting up some filesystem watcher for the
logfile, and/or by having a cronjob searching through the logfile for the
line containing `status=`.
But it would be so much nicer if Postfix would support this out of the box
:-)
Adding a full-blown events layer with user-configurable commands for each
event, is probably not so easy ;-)
But what about extending the built-in logging mechanism? When a setting like
`pipe_log_to_command=` is given, then (additionally to writing them to a
file) send the logfile entries to that command.
Are you aware of rsyslog omprog?
You write a script that runs as a service and rsyslog pipes log lines to the
script which the script can do anything with.
Run commands, save to a db, etc. It can be your postfix
`pipe_log_to_command=` API layer.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org