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

Reply via email to