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-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 :-)
> >
> ># header CUSTOM_X_SPAM_FLAG ALL:raw =~ /\bX-Spam-Flag: YES\b/i
> ># aol forget the space before YES
> ># does the other versions exists ?
> >header X_SPAM_FLAG_YES ALL:raw =~ /\bX-Spam-Flag:YES\b/i
> >describe X_SPAM_FLAG_YES Header: says its spam
> >score X_SPAM_FLAG_YES 1.5
> >
> >tested and works
> 
> Good.  This may work then, too:
> 
> header CUSTOM_X_SPAM_FLAG X-Spam-Flag:raw =~ /\bYES\b/i

I can't test this now but yesterday I implemented with postfix the suggested
version with X-Original-Spam-Flag and it just worked:

cat /etc/postfix/header_checks

  /^X-Spam-Flag: YES/ PREPEND X-Original-Spam-Flag: YES
  /^Received:/ HOLD

fw-omma:~# grep CUSTOM_X /etc/spamassassin/local.cf

  header CUSTOM_X_SPAM_FLAG X-Original-Spam-Flag =~ /\bYES\b/i
  score CUSTOM_X_SPAM_FLAG 2


thanks to all of you for the great support.

sandro
*:-)


-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy

Reply via email to