boricua, > any reason for not discarding bad header. > today is 95% of the spam i get > > X-Amavis-Alert: BAD HEADER Improper folded header field made up entirely of > whitespace in message header 'X-Spam-Report': \t
Sure, in most cases mail with such headers can be discarded. > any good reason why this is not a default? Because such header is actually valid in rfc822. The rfc2822 prohibits it, but recognizes that old clients (or broken mail clients) may still use it: 4.2. Obsolete folding white space In the obsolete syntax, any amount of folding white space MAY be inserted where the obs-FWS rule is allowed. This creates the possibility of having two consecutive "folds" in a line, and therefore the possibility that a line which makes up a folded header field could be composed entirely of white space. Note that newer versions of amavisd-new remove such lines to protect poorly written mail clients from misinterpreting mail header: amavisd-new-2.3.1 release notes - unfold obsolete-syntax folded header fields composed entirely of white space (RFC 2822 section 4.2); suggested by Ian Abbott and others. Note that such unfolding breaks DomainKeys "simple" canonicalization algorithm (but is transparent to "nofws") if the affected header is included in the signature; Mark ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/