Hi, You want: PREPEND
http://www.postfix.org/header_checks.5.html PREPEND text... Prepend one line with the specified text, and inspect the next input line. Notes: o The prepended text is output on a separate line, immediately before the input that triggered the PREPEND action. o The prepended text is not considered part of the input stream: it is not subject to header/body checks or address rewriting, and it does not affect the way that Postfix adds missing message headers. o When prepending text before a message header line, the prepended text must begin with a valid message header label. o This action cannot be used to prepend multi- line text. This feature is available in Postfix 2.1 and later. On Wed, 12 Aug 2009, Guidarini, Robert wrote:
I was hoping someone would have experience in what I need to do. Our servers send emails to our postfix servers and include a custom header that the value is referenced in one of our databases. This concerns outgoing email only. Example of custom header inserted into the emails: X-Info-MessageID: l6oL1rHPRUyklkQzdkW3kg I need to get the postfix servers to add that custom header info into the postfix log when an email is sent. What I would like to see in the logs is something like (dream scenario): Aug 11 16:35:37 MTA9 postfix/cleanup[1123]: E472A137E2: message-id=<20090811213537.e472a13...@mta9.somedomain.net> Aug 11 16:35:37 MTA9 postfix/qmgr[3885]: E472A137E2: from=<nore...@somedomain.net>, size=3034, nrcpt=1 (queue active), X-Info-MessageID: l6oL1rHPRUyklkQzdkW3kg Is this functionality possible and if so, how? Robert