On 22.11.19 12:14, Jerry Malcolm wrote:
I am trying to add bayes to SA. I see in the docs that there is a
use_bayes parm and the path parm. I made the changes to
/usr/share/spamassassin/local.cf.
On 11/22/2019 12:25 PM, Matus UHLAR - fantomas wrote:
the config files and rules are usually in /etc/spamassassin/
But I see no change. I am not sure it's even loading that config
file. I've got debug on, and the log doesn't tell me that it's
reading the local.cf file I'm changing.
try running spamassassin -D --lint and look for results:
Nov 22 19:20:24.735 [16921] dbg: logger: adding facilities: all
Nov 22 19:20:24.735 [16921] dbg: logger: logging level is DBG
Nov 22 19:20:24.735 [16921] dbg: generic: SpamAssassin version 3.4.2
Nov 22 19:20:24.735 [16921] dbg: generic: Perl 5.028001,
PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin,
LOCAL_RULES_DIR=/etc/spamassassin,
LOCAL_STATE_DIR=/var/lib/spamassassin
On 22.11.19 13:06, Jerry Malcolm wrote:
My LOCAL_RULES_DIR is /etc/mail/spamassassin, and the log did say:
dbg: config: read file /etc/mail/spamassassin/local.cf
I added: bayes_path /etc/sysconfig/sa_bayes line to
/etc/mail/spamassassin/local.cf, but the log said:
dbg: bayes: tie-ing to DB file R/O
/root/.spamassassin/bayes_toks
It ignored the path I set. Shouldn't it be using the bayes_path from
my local.cf?
It should. I have put bayes_path temporarily to /etc/spamassassin/local.cf
and it tried to use provided value.
as already noted, bayes_path is path prefix, not a directory, must point to
directory the spamd user has permission to write to and it shouldn't be in
/etc, I recommend somewhere in /var
The initial install of SA on AWS Linux EC2 has a SPAMDOPTIONS="-d
-c -m5 -H". I was told a few months back in this forum that -H
without a parameter following is not even valid and it applies to
per-user stuff.
it _is_ valid and applies per-user config files.
But even if I'm not using per-user, should I still add -H and -c back in?
they aren't needed then.
Note that "spamassassin" is standalone program and so it behaves differently
than "spamd". I recommended you using it to test system configuration.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges.