On 6/15/2016 11:01 AM, Rob Maidment wrote:
> I am intending to replace Sendmail with Postfix as the MTA component
> in a secure email appliance.  One of the features of the appliance
> is the ability to search for messages by subject, sender, etc, and
> show the progress of those messages through the appliance.  To this
> end a customised version of Sendmail writes key events to a FIFO
> e.g. message accepted, message deferred, message delivered.  (The
> main use-case for this is when a message goes missing - the admin
> can run the report to see whether the message was received, held,
> delivered, etc.)
> 
> I would like to find a way of achieving something similar with
> Postfix, but without customising the Postfix source code (because
> that becomes a barrier to upgrading).  All I can come up with is to
> parse the Postfix logging output and to generate the events when key
> messages appear, but this is a fragile solution because it's
> vulnerable to changes in logging output in future Postfix releases.
> 
> Is there a better solution?
> 
> regards,
> Rob Maidment
> 


It seems your only options are customizing the source or parsing the
logs, and the logs are clearly the least disruptive choice.
Everything you need should be in the normal log messages; no need to
enable debug logging.

The various log messages are subject to change, and the changes are
noted in the RELEASE NOTES.

Fortunately, the developers are aware that a high percentage of
installations use various log analysis tools, and are not inclined
to make frivolous changes to the log format.



  -- Noel Jones

Reply via email to