Re: Add a log line in postfix logs

2013-04-23 Thread DTNX Postmaster
On Apr 23, 2013, at 19:23, Abhijeet Rastogi wrote: > So, what exactly is the solution now? My sole requirement is getting > "queueid", "from" and "to" in the same log line. Getting other headers > is just a secondary thing. Parse the logs, or write/use an external program that integrates with P

Re: Add a log line in postfix logs

2013-04-23 Thread Wietse Venema
Abhijeet Rastogi: > I missed one thing. I can't even use "to:" as it's not a required > header. So, I thought of using "Received;" header. That'll work most > of the times but then there is another issue now. > > Doc says that: > > Each message header or message body line is compared >

Re: Add a log line in postfix logs

2013-04-23 Thread Abhijeet Rastogi
I missed one thing. I can't even use "to:" as it's not a required header. So, I thought of using "Received;" header. That'll work most of the times but then there is another issue now. Doc says that: Each message header or message body line is compared against a list of patterns. Wh

Re: Add a log line in postfix logs

2013-04-23 Thread Abhijeet Rastogi
Hi, Thanks all for your reply. I mistyped "/^to:/" (actually it was Subject only) because I was testing with ways to display "from" and "to" (my original intent) in logs and WARN was not getting executed when email had no Subject. Regarding the argument that they all come from different parts of

Re: Add a log line in postfix logs

2013-04-23 Thread /dev/rob0
On Tue, Apr 23, 2013 at 08:10:19PM +0530, Abhijeet Rastogi wrote: > How flexible is postfix-2.8.7 to add one more log line in logs. > > My requirement is to have a line which will contain "queueid", > "form", "to" & "subject" header in the same log line. > > If I add in header_checks a line like:

Re: Add a log line in postfix logs

2013-04-23 Thread Reindl Harald
Am 23.04.2013 16:40, schrieb Abhijeet Rastogi: > How flexible is postfix-2.8.7 to add one more log line in logs. > > My requirement is to have a line which will contain "queueid", "form", > "to" & "subject" header in the same log line the problem is that the specific lines are from different pr

Add a log line in postfix logs

2013-04-23 Thread Abhijeet Rastogi
Hi all, How flexible is postfix-2.8.7 to add one more log line in logs. My requirement is to have a line which will contain "queueid", "form", "to" & "subject" header in the same log line. If I add in header_checks a line like: /^to:/ WARN I get what I want but it also adds other stuff like "