From: "Ed Kasky" <[EMAIL PROTECTED]>
To: "Matt Kettler" <[EMAIL PROTECTED]>
Cc: <users@spamassassin.apache.org>
Sent: Thursday, April 06, 2006 17:26
Subject: Re: required_hits not working?


At 04:59 PM Thursday, 4/6/2006, you wrote -=>
Ed Kasky wrote:
> At 03:39 PM Thursday, 4/6/2006, you wrote -=>
>> On Thu, 6 Apr 2006, Ed Kasky wrote:
>>
>> > I have the following in /etc/mail/spamassasin/local.cf
>> > required_hits 6.9
>> >
>> > Yet I just noticed the following that started at some point Tuesday:
>> >
>> > Content analysis details:   (18.3 points, 5.0 required)
>> >
>> > It's true for all users.  I double checked fro multiple local.cf
>> > files and the user_prefs files.   The required_hits lines are
>> > remarked out in the individual user files.  Where else might this be
>> > coming from?
>> >
>> > Running SA version 3.1.1 with Sendmail 8.13.6
>>
>> What mechanism are you using to connect sendmail to SA? Procmail or
>> amavisd-new or a milter like spamass-milter or MIMEDefang or
>> something else?
>>
>> Some of those mechanisms load an instance of SA into their own Perl
>> engine (EG amavisd-new) and have their own seperate config files.
>>
>> So we need more information to answer your question.
>
> Sorry about that - I am running spamd and call spamc via procmail:
>
> :0fw
> * < 300000
> | spamc -f -u spamd
>

Any chance you didn't reload spamd after editing local.cf?

Also, for what it's worth, required_hits is deprecated. It's still accepted, but the preferred option is required_score. At some point in the future, support for required_hits might go away, so while you're setting things up it might be worth
changing to the newer syntax to avoid future headaches.

I usually edit the local.cf via a script that reloads spamd if there are any changes. I even re-started it just this morning to see if that was the case but it still kept using the 5.0 score.

I forgot to mention before that "spamassassin -D --lint" was using the 6.9 as threshold but spamc was using 5.0. I changed the line in the cf to required_score 6.9 and now a lint shows:
dbg: check: is spam? score=3.586 required=7

Does it round using required_score?

Anyway, spamc continues to use the 5.0 score after the change and restart:
Apr  6 17:19:34 yoda2 spamd[10978]: spamd: clean message (-101.1/5.0)

My /etc/sysconfig/spamd:
OPTIONS="-d -u spamd -H /home/spamd -m 15"

Last time I had a problem like this, I had multiple local.cf files. A locate turned up only one instance in /etc/mail/spamassassin.....

Per user rules with default required_score in the user_prefs files?
{^_^}

Reply via email to