You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Adam Harrison <ah...@intelius.com> on 2009/04/28 23:44:16 UTC

How can I tell if the rules are being read?

I'm seeing a lot of mail with Viagra in the subject coming through, even
though there is the drugs rules file(20_drugs.cf) in the upgrades
directory(/var/lib/spamassassin/3.002004/updates_spamassassin_org).

 

Is there a simple way to see what rules files are being read?

 

Thanks,

-Adam


Re: How can I tell if the rules are being read?

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Tue, 2009-04-28 at 14:44 -0700, Adam Harrison wrote:
> I’m seeing a lot of mail with Viagra in the subject coming through,
> even though there is the drugs rules file(20_drugs.cf) in the upgrades
> directory(/var/lib/spamassassin/3.002004/updates_spamassassin_org).

That doesn't necessarily suffice, regardless of that name. ;)  Usually
there are lots of other things to tweak, third-party rule-sets and
plugins...

If you upload one or two full samples including all headers somewhere,
providing a link, someone is likely to have a look and can give hints.

> Is there a simple way to see what rules files are being read?

Sure. :)  Watch out for "config: read file" in the full debug stuff.
And of course any errors, warnings, strange stuff.

  $ spamassassin -D --lint 2>&1 | less

Alternatively, limit it to the config only.

  $ spamassassin -D config --lint 2>&1 | less


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}