Re: Rule to match X-Spam-Flag

2011-06-14 Thread Alessandro Dentella
On Fri, Jun 10, 2011 at 10:52:25PM +0200, Benny Pedersen wrote: > On Fri, 10 Jun 2011 11:29:23 +0200, Alessandro Dentella wrote: > > >thanks to all of you for the great support. > > super duper will test this in postfix, just a shame one need to turn > postfix into a content filter just to make i

Re: Rule to match X-Spam-Flag

2011-06-10 Thread Benny Pedersen
On Fri, 10 Jun 2011 11:29:23 +0200, Alessandro Dentella wrote: thanks to all of you for the great support. super duper will test this in postfix, just a shame one need to turn postfix into a content filter just to make it work :(

Re: Rule to match X-Spam-Flag

2011-06-10 Thread Mark Martinec
Benny, > On Thu, 09 Jun 2011 22:38:25 -0400, Daryl C. W. O'Shea wrote: > > header CUSTOM_X_SPAM_FLAG X-Spam-Flag:raw =~ /\bYES\b/i Can't work, the M::S::PerMsgStatus::check_timed calls: $self->{msg}->delete_header('X-Spam-.*'); before invoking any checks. Moving that call further down makes

Re: Rule to match X-Spam-Flag

2011-06-10 Thread Alessandro Dentella
On Thu, Jun 09, 2011 at 10:38:25PM -0400, Daryl C. W. O'Shea wrote: > On 09/06/2011 10:26 PM, Benny Pedersen wrote: > >On Fri, 10 Jun 2011 04:08:08 +0200, Benny Pedersen wrote: > >>On Thu, 09 Jun 2011 22:00:09 -0400, Daryl C. W. O'Shea wrote: > >> > >>>header CUSTOM_X_SPAM_FLAG ALL:raw =~ /\bX-Spam

Re: Rule to match X-Spam-Flag

2011-06-10 Thread Benny Pedersen
On Thu, 09 Jun 2011 22:38:25 -0400, Daryl C. W. O'Shea wrote: header CUSTOM_X_SPAM_FLAG X-Spam-Flag:raw =~ /\bYES\b/i nope, is headers case sensitive ? spamassassin have case like the above, but aol changed it all uppercase, and my rule works from spamassassin, but fails in amavis since thi

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Daryl C. W. O'Shea
On 09/06/2011 10:26 PM, Benny Pedersen wrote: On Fri, 10 Jun 2011 04:08:08 +0200, Benny Pedersen wrote: On Thu, 09 Jun 2011 22:00:09 -0400, Daryl C. W. O'Shea wrote: header CUSTOM_X_SPAM_FLAG ALL:raw =~ /\bX-Spam-Flag: YES\b/i aol have left out the space before YES will test it and report b

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Benny Pedersen
On Fri, 10 Jun 2011 04:08:08 +0200, Benny Pedersen wrote: On Thu, 09 Jun 2011 22:00:09 -0400, Daryl C. W. O'Shea wrote: header CUSTOM_X_SPAM_FLAG ALL:raw =~ /\bX-Spam-Flag: YES\b/i aol have left out the space before YES will test it and report back, thanks for this tip if it works :-) # he

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Benny Pedersen
On Thu, 09 Jun 2011 22:00:09 -0400, Daryl C. W. O'Shea wrote: header CUSTOM_X_SPAM_FLAG ALL:raw =~ /\bX-Spam-Flag: YES\b/i aol have left out the space before YES will test it and report back, thanks for this tip if it works :-)

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Daryl C. W. O'Shea
On 09/06/2011 5:09 AM, Alessandro Dentella wrote: Hi, I find a lot of spam that has already passed other spam-filters with spamassassin better tuned than mine an already have a X-Spam-Flag to YES. I tried to add a rule to match that case: header CUSTOM_X_SPAM_FLAG X-Spam-Flag =~ /\bYES\b

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Joe Sniderman
On 06/09/2011 11:06 AM, Mark Martinec wrote: > Benny, > >>> As a workaround, you may add some header rewrite rule to your MTA >>> which could rewrite a X-Spam-Flag to something else, like >>> X-X-Spam-Flag. >> >> will not give invalid dkim ? > > No, unless the X-Spam-Flag were signed, which is un

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Mark Martinec
Benny, > > As a workaround, you may add some header rewrite rule to your MTA > > which could rewrite a X-Spam-Flag to something else, like > > X-X-Spam-Flag. > > will not give invalid dkim ? No, unless the X-Spam-Flag were signed, which is unlikely. Mark

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Benny Pedersen
On Thu, 9 Jun 2011 11:46:41 +0200, Mark Martinec wrote: As a workaround, you may add some header rewrite rule to your MTA which could rewrite a X-Spam-Flag to something else, like X-X-Spam-Flag. will not give invalid dkim ? seems aol.com does not use amavisd-new, if thay did this header was

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Yet Another Ninja
On 2011-06-09 11:46, Mark Martinec wrote: Sandro, I find a lot of spam that has already passed other spam-filters with spamassassin better tuned than mine an already have a X-Spam-Flag to YES. I tried to add a rule to match that case: header CUSTOM_X_SPAM_FLAG X-Spam-Flag =~ /\bYES\b/i

Re: Rule to match X-Spam-Flag

2011-06-09 Thread Mark Martinec
Sandro, > I find a lot of spam that has already passed other spam-filters with > spamassassin better tuned than mine an already have a X-Spam-Flag to YES. > > I tried to add a rule to match that case: > > header CUSTOM_X_SPAM_FLAG X-Spam-Flag =~ /\bYES\b/i > score CUSTOM_X_SPAM_FLAG 5 > > B

Rule to match X-Spam-Flag

2011-06-09 Thread Alessandro Dentella
Hi, I find a lot of spam that has already passed other spam-filters with spamassassin better tuned than mine an already have a X-Spam-Flag to YES. I tried to add a rule to match that case: header CUSTOM_X_SPAM_FLAG X-Spam-Flag =~ /\bYES\b/i score CUSTOM_X_SPAM_FLAG 5 But spamassassin -t