Re: Log header to file and discard message

2014-12-23 Thread Wietse Venema
Viktor Dukhovni: > The Morris worm had: > > #define MAIL_FROM "mail from:\n" > #define MAIL_RCPT "rcpt to:<\"| sed \'1,/^$/d\' | /bin/sh ; exit 0\">\n" > > to delete the header and execute the body, you can surely do the converse. > > aliases: > logheader: "|sed -ne 'p;/^$/q'>>

Re: Log header to file and discard message

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 03:34:41PM -0700, Fred Newtz wrote: > We have a development server where we want to simply log the > entire header to a file and discard the email. I realize with the > smtp_header_checks you cannot discard the message and I am unsure > if you could log the entire header t

Log header to file and discard message

2014-12-23 Thread Fred Newtz
Hello, We have a development server where we want to simply log the entire header to a file and discard the email. I realize with the smtp_header_checks you cannot discard the message and I am unsure if you could log the entire header to a log file. I was thinking about building a custom filt