Clifton Royston wrote: > On Mon, Apr 14, 2008 at 01:21:57PM -0700, Jose Hales-Garcia wrote: > > [snip] > IIRC, as regards most mail headers, there is no definition stating > that they can occur only a single time, and hence they really should be > arrays. However, I think a lot of software which processes mail > headers assumes that only a single occurrence will be present; the Ruby > package is not the only one at fault. > > If you want to brute-force the solution, while you look for the true > reason amavisd is failing to strip the previous headers, you could add > a Postfix header_checks rule to be run on the pre-amavisd instance such > as (with PCRE): > > /^X-Spam-Score:/ IGNORE > /^X-Spam-Hits:/ IGNORE > /^X-Spam-Level:/ IGNORE > /^X-Spam-Flag:/ IGNORE > etc. >
I prefer rewriting the headers: /^(X-Spam-.*)/ REPLACE X-$1 This way, information is not removed. again, as Jose said, these header_checks must only be applied before amavisd-new (either a specific instance or a specific cleanup service). > This would wipe out the headers in question prior to feeding them > into amavisd-new. I do this in my configuration, just to be on the > safe side. > > -- Clifton > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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/