On Tue, Sep 09, 2008 at 11:11:59PM +0200, Kenneth Kalmer wrote: > Hi all > > I've spent a couple of hours Googling the topic before posting, and couldn't > find anything really useful yet. > > I need a way to save copies of email headers for later analysis, not the > entire message. Is this possible out the box, with an addon, a separate > piece of software, or would I have to roll my own?
An SMTP content filter can save the headers to disk as it inspecis each message. My approach is that multiple filter processes are active at the same time, each saves its header traces to a file named: /some/path/YYYY.MM.DD/<pid> headers of multiple messages are separated by blamk lines. To avoid merging messages after a crash, each header block is preceeded by two new-line characters. \n \n header11\n header12\n ... header1N\n \n \n header21\n header22\n ... header2N\n -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.