moving the bayes files?
Furnish, Trever G
TGFurnish at HERFF-JONES.COM
Tue Jul 22 23:10:44 IST 2003
Replying to my own question, it looks like these files are only created
periodically, so once I made the config change and restarted MailScanner,
the files didn't immediately appear. Instead they appeared quite a few
hours later, after 30 or so messages had been run through the system.
My thanks to "Matt", who shall remain otherwise nameless because he's
list-"shy". :-)
--
Trever
>-----Original Message-----
>From: Furnish, Trever G [mailto:TGFurnish at HERFF-JONES.COM]
>Sent: Tuesday, July 22, 2003 1:37 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: moving the bayes files?
>
>
>I suppose I'm taking a rather haphazard approach to learning
>mailscanner,
>but I've recently realized spamassassin *may* be storing bayesian
>filtering-related files under /root/.spamassassin on my
>system, which isn't
>a good long-term situation for me, so I stopped mailscanner,
>uncommented the
>following lines in /etc/MailScanner/spam.assassin.prefs.conf,
>and restarted
>MailScanner:
>
>auto_whitelist_path /var/spool/spamassassin/auto-whitelist
>auto_whitelist_file_mode 0600
>bayes_path /var/spool/spamassassin/bayes
>bayes_file_mode 0600
>
>That didn't seem to work (for moving the files) -- The
>/var/spool/spamassassin directory did not get created and
>MailScanner died
>quietly.
>
>So...I ran the mailscanner init script with 'stop' as an arg,
>then did a
>mkdir /var/spool/spamassassin, then restarted mailscanner.
>Now it doesn't
>die, but it also doesn't create files under
>/var/spool/spamassassin. What
>else do I need to do in order to get that working? I'm not
>even sure the
>bayesian stuff was working to begin with.
>
>In case it helps, here's the output of spamassassin -D --lint
>2>&1 - any
>suggestions would be appreciated.
>
>debug: Score set 0 chosen.
>debug: running in taint mode? no
>debug: ignore: using a test message to lint rules
>debug: using "/usr/share/spamassassin" for default rules dir
>debug: using "/etc/mail/spamassassin" for site rules dir
>debug: using "/root/.spamassassin" for user state dir
>debug: using "/root/.spamassassin/user_prefs" for user prefs file
>debug: using "/root/.spamassassin" for user state dir
>debug: bayes: 22042 tie-ing to DB file R/O
>/root/.spamassassin/bayes_toks
>debug: bayes: 22042 tie-ing to DB file R/O
>/root/.spamassassin/bayes_seen
>debug: debug: Only 5 spam(s) in Bayes DB < 200
>debug: bayes: 22042 untie-ing
>debug: bayes: 22042 untie-ing db_toks
>debug: bayes: 22042 untie-ing db_seen
>debug: Score set 1 chosen.
>debug: Initialising learner
>debug: using "/root/.spamassassin" for user state dir
>debug: bayes: 22042 tie-ing to DB file R/O
>/root/.spamassassin/bayes_toks
>debug: bayes: 22042 tie-ing to DB file R/O
>/root/.spamassassin/bayes_seen
>debug: debug: Only 5 spam(s) in Bayes DB < 200
>debug: bayes: 22042 untie-ing
>debug: bayes: 22042 untie-ing db_toks
>debug: bayes: 22042 untie-ing db_seen
>debug: is Net::DNS::Resolver available? yes
>debug: trying (3) amazon.com...
>debug: looking up MX for 'amazon.com'
>debug: MX for 'amazon.com' exists? 1
>debug: MX lookup of amazon.com succeeded => Dns available (set
>dns_available
>to
>hardcode)
>debug: is DNS available? 1
>debug: running header regexp tests; score so far=0
>debug: running body-text per-line regexp tests; score so far=1.9
>debug: running raw-body-text per-line regexp tests; score so far=1.9
>debug: running uri tests; score so far=1.9
>debug: uri tests: Done uriRE
>debug: running full-text regexp tests; score so far=1.9
>debug: Razor2 is not available
>debug: Current PATH is:
>/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/us
>r/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
>debug: DCC is not available: dccproc not found
>debug: Pyzor is not available: pyzor not found
>debug: all '*To' addrs:
>debug: all '*From' addrs: ignore at compiling.spamassassin.taint.org
>debug: running meta tests; score so far=2.4
>debug: is spam? score=2.4 required=5
>tests=DATE_MISSING,MISSING_HEADERS,NO_REAL_
>NAME
>debug: bayes: 22042 untie-ing
>
More information about the MailScanner
mailing list