On Thu, Jun 05, 2014 at 04:51:56PM +0200, Maarten Vanraes wrote: > > Just pipe this line to "postlog", and include the queue-id of the input > > message (${queue_id} pipe(8) argument used *before* ${recipient} or > > similar which expands to multiple arguments and must be last unless > > the transport recipient limit is set to 1). > > that is a possibility, but i don't have 2.11 yet.
You can parse the queue-id out of the topmost received header prepended by Postfix. > but, iinm some other transports (not pipe) do have downstream information, so > wouldn't it be better to have a similar output? There is no expectation that the first line of output is particularly meaningful. This is not a well-defined interface, and scripts might unexpectedly output some text before the intended audit output (necessarily late in the script since you're reporting downstream queue-ids for correlation, ...) Logging it with postlog(1) from the script is far cleaner. Do that. Upgrade to 2.11.1 if that's what it takes. -- Viktor.