On Wed, Jun 04, 2014 at 04:04:36PM +0200, Maarten Vanraes wrote:

> I'm using pipe for some delivery transport. the logs tell me something like:
> 
> status=sent (delivered by <transportname>)
> 
> now my transport stores some parts in a database and possibly sends it back 
> into postfix... so for audit purposes, it would be nice if the pipe transport 
> would get the first output line and put it in the logging:
> 
> status=sent (delivered by <transportname> (stored as 235264) )
> 
> or
> 
> status=sent (delivered by <transportname> (250 2.0.0 queued as F3A365EA) )
> 
> or whatever message is there (which is usable to identify correctly the next 
> chain in the link...

You should simply log the requisite message from the executed program.
You can use postlog(1) if you like.

--
        Viktor.

Reply via email to