Randall Perry wrote to [EMAIL PROTECTED]:

In the mail.log line below required is set to 5, though I've set it to 10 in
local.cf. I explicitly tell spamd where it's config file is using '-C':
   /usr/local/bin/spamd -d --pidfile /var/run/spamd.pid -u spamd -C
/etc/mail/spamassassin/local.cf

And the mail.log still reports 'required=5.0'.

Am I missing something?

Hi Randall,

You have:
/usr/local/bin/spamd ... -C /etc/mail/spamassassin/local.cf

perldoc spamd: -C path, --configpath=path Use the specified path for locating the distributed configuration files. Ignore the default directories (usually /usr/share/spamassassin or similar).

Since -C expects a directory name, not a filename, just remove the
"local.cf" from the end of your config path. SpamAssassin is designed to
read any .cf files from the configpath. And, you probably want to use
--siteconfigpath instead:

       --siteconfigpath=path
           Use the specified path for locating site-specific configuration
           files.  Ignore the default directories (usually
           /etc/mail/spamassassin or similar).

If you are indeed using /etc/mail/spamassassin, you likely don't need to
specify --siteconfigpath, unless you're using someone's nonstandard
package.

But, the definite show-stopper:

Local.cf
--------
required_sccore 10

Typo. Should be `required_score'.

use_bayes 1
bayes_path /etc/mail/spamassassin/bayes
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_learn_threshold_spam 12

Mail.log
---------
Aug 28 17:09:44 xserve1 sm-mta[3868]: i7SL9cVl003868: Milter add: header:
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no
version=2.64

-- Ryan Thompson <[EMAIL PROTECTED]>

  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4

        Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America

Reply via email to