spamd and bayes_path
Ryan Thompson
ryan at sasknow.com
Sun Sep 7 07:40:09 PDT 2003
Hi All,
I'm a little stumped, here. Where exactly does our port of spamassassin
(when run as spamd) get its configuration from?
I'm using spamd with mimedefang from the ports:
mimedefang-2.31 Milter based anti-spam and anti-virus ...
p5-Mail-SpamAssassin-2.55 A highly efficient mail filter for ...
I'd like to use a site-wide Bayes filter. I've already set bayes_path,
and have a resident Spam Queen on staff who has trained the filter with
close to 3000 spams and hams. If I run spamassassin -t < test_message
from the command line, the BAYES_XX rules are applied (and work really
well!) However, when running as spamd, spamassassin appears to ignore my
configuration, so the bayes filter is never checked.
I've added the following to
/usr/local/etc/mimedefang/spamassassin/sa-mimedefang.cf and
/usr/local/etc/mail/spamassassin/local.cf
> auto_learn 1
> use_bayes 1
> bayes_path /var/spool/MIMEDefang/bayes
Also, my /usr/local/bin/spamd contains the following (comments trimmed):
my $PREFIX = '/usr/local';
my $DEF_RULES_DIR = '/usr/local/share/spamassassin';
my $LOCAL_RULES_DIR = '/usr/local/etc/mail/spamassassin';
/usr/local/share/spamassassin, for the record, contains the default
rule .cf files for spamassassin. For the sheer enjoyment of it, I also
put a copy of my local.cf in this directory, though it shouldn't be
needed.
To reiterate, my config is read correctly when I invoke spamassassin
itself. spamd, though, doesn't want to read it, no matter how many times
I kill the spamd process and restart it. :-)
- Ryan
--
Ryan Thompson <ryan at sasknow.com>
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
More information about the freebsd-ports
mailing list