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: > > /^to:/ WARN > > I get what I want but it also adds other stuff like "proto",
How does that line get you the Subject: header? It does not. You might use this: /^Subject:/ WARN And that would show everything you listed above, albeit not the To/From headers: this would show the envelope sender and one of [possibly numerous] envelope recipients. If the desire is to log message content (that is, multiple headers), note from this link, Postfix cannot do this natively: http://www.postfix.org/BUILTIN_FILTER_README.html#limitations > "helo" etc which I don't want. I want logs to be as clean as > possible. Is there a way I can accomplish this? What information is logged is not configurable. Write a script to clean up the logs before you look at them. :) -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: