Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Bastian Blank
On Wed, Aug 12, 2009 at 08:09:32AM -0500, Guidarini, Robert wrote: > Example of custom header inserted into the emails: > X-Info-MessageID: l6oL1rHPRUyklkQzdkW3kg Why don't you add this to the message-id, which is mandatory and already logged? Bastian -- He's dead, Jim. -- McCoy

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Noel Jones wrote: > The entire header (up to a sanity limit) is logged; no further action is > necessary. Great, thanks again!

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Noel Jones
Thomas Gelf wrote: Noel Jones wrote: To log an existing header, use the header_checks WARN action. http://www.postfix.org/header_checks.5.html Thank you! The log entry would look something like: Aug 12 10:29:59 mgate2 postfix/cleanup[29258]: 7C773797ADF: warning: header X-Info-Messageid: l6o

RE: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Guidarini, Robert
7;s input. Robert -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Thomas Gelf Sent: Wednesday, August 12, 2009 10:54 AM To: postfix-users@postfix.org Subject: Re: need to add custom header parameter/value to postfix logging. Noel Jone

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Noel Jones wrote: > To log an existing header, use the header_checks WARN action. > http://www.postfix.org/header_checks.5.html Thank you! > The log entry would look something like: > Aug 12 10:29:59 mgate2 postfix/cleanup[29258]: 7C773797ADF: warning: > header X-Info-Messageid: l6oL1rHPRUyklkQzd

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Noel Jones
Thomas Gelf wrote: Thomas Gelf schrieb: If I didn't missunderstand him he already has those X-Info-MessageID headers in his mail headers, what he wants is Postfix to do is writing them to syslog. That's what happens if you're at phone while writing :-/ It should read: "...already has those X-I

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Thomas Gelf schrieb: > If I didn't missunderstand him he already has those X-Info-MessageID > headers in his mail headers, what he wants is Postfix to do is writing > them to syslog. That's what happens if you're at phone while writing :-/ It should read: "...already has those X-Info-MessageID hea

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Wietse Venema wrote: > Justin Piszcz: >> You want: PREPEND > > Please note that you don't have to use regexp tables for this. > It should be possible to do header PREPEND actions from MySQL etc. > too, as long as you can formulate the right query. >>> What I would like to see in the logs is somet

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Wietse Venema
Justin Piszcz: > Hi, > > You want: PREPEND > > http://www.postfix.org/header_checks.5.html Please note that you don't have to use regexp tables for this. It should be possible to do header PREPEND actions from MySQL etc. too, as long as you can formulate the right query. Wietse > >

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Justin Piszcz
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