Brian,
I have stumbled on permissions on the parent directories before.
Check the group permissions on each successive parent directory above
your bayes directory.
Check:
/etc/mail/
/etc/mail/spamassassin
If spamd cannot read or execute on those parents of bayes, then spamd
won't be able to get to the files. Remember, it starts at the root level
and works down.
Tony
>>> "Brian Hoover" <[EMAIL PROTECTED]> 5/27/2004 10:48:13 AM >>>
Hello all,
This question has been asked before but I have not had any success with
the responses I have read in the digest.
I receive this line from spamd on startup:
May 27 11:21:53 mail-fb spamd[7666]: debug: bayes: no dbs present,
cannot scan: /etc/mail/spamassassin/bayes/bayes_toks
I have run sa-learn from /etc/mail/spamassassin to create the dbs. I
also ran chmod and chown on the dbs stopping and starting spamd at each
step to see if the error would clear.
What I have I done wrong?
Thanks,
Brian
spamd user from passwd:
spamd:x:508:508::/home/spamd:/bin/false
the invocation of spamd is:
daemon spamd -D -x -u spamd -H /home/spamd -d
the local.cf is:
required_hits 5
skip_rbl_checks 1
use_bayes 1
bayes_path /etc/mail/spamassassin/bayes/bayes
bayes_file_mode 0777
ls -l /etc/mail/spamassassin/bayes returns:
total 2212
-rw-rw-rw- 1 spamd spamd 172032 May 27 11:13
bayes_seen
-rw-rw-rw- 1 spamd spamd 2637824 May 27 11:13
bayes_toks
sa-learn --dump magic returns:
0.000 0 2 0 non-token data: bayes db
version
0.000 0 448 0 non-token data: nspam
0.000 0 751 0 non-token data: nham
0.000 0 80853 0 non-token data: ntokens
0.000 0 1041631342 0 non-token data: oldest
atime
0.000 0 1085652569 0 non-token data: newest
atime
0.000 0 0 0 non-token data: last
journal sync atime
0.000 0 0 0 non-token data: last
expiry atime
0.000 0 0 0 non-token data: last
expire atime delta
0.000 0 0 0 non-token data: last
expire reduction count
the maillog from the most recent spamd startup:
May 27 11:21:52 mail-fb spamd[7666]: debug: daemonized.
May 27 11:21:52 mail-fb spamd[7666]: debug: Preloading modules with
HOME=/tmp/spamd-7666-init
May 27 11:21:53 mail-fb spamd[7666]: debug: ignore: test message to
precompile patterns and load modules
May 27 11:21:53 mail-fb spamd[7666]: debug: using
"/usr/share/spamassassin" for default rules dir
May 27 11:21:53 mail-fb spamd[7666]: debug: using
"/etc/mail/spamassassin" for site rules dir
May 27 11:21:53 mail-fb spamd[7666]: debug: bayes: no dbs present,
cannot scan: /etc/mail/spamassassin/bayes/bayes_toks
May 27 11:21:53 mail-fb spamd[7666]: debug: Score set 1 chosen.
May 27 11:21:53 mail-fb spamd[7666]: debug: Initialising learner
May 27 11:21:53 mail-fb spamd[7666]: debug: bayes: no dbs present,
cannot scan: /etc/mail/spamassassin/bayes/bayes_toks
May 27 11:21:53 mail-fb spamd[7666]: debug: running header regexp
tests; score so far=0
May 27 11:21:53 mail-fb spamd[7666]: debug: running body-text per-line
regexp tests; score so far=1.27
May 27 11:21:53 mail-fb spamd[7666]: debug: Razor2 is not available
May 27 11:21:53 mail-fb spamd[7666]: debug: running raw-body-text
per-line regexp tests; score so far=1.27
May 27 11:21:53 mail-fb spamd[7666]: debug: running uri tests; score so
far=1.27
May 27 11:21:53 mail-fb spamd[7666]: debug: uri tests: Done uriRE
May 27 11:21:53 mail-fb spamd[7666]: debug: running full-text regexp
tests; score so far=1.27
May 27 11:21:53 mail-fb spamd[7666]: debug: Razor2 is not available
May 27 11:21:53 mail-fb spamd[7666]: debug: Current PATH is:
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/bin:/usr/local/bin
May 27 11:21:53 mail-fb spamd[7666]: debug: Pyzor is not available:
pyzor not found
May 27 11:21:53 mail-fb spamd[7666]: debug: DCCifd is not available: no
r/w dccifd socket found.
May 27 11:21:53 mail-fb spamd[7666]: debug: DCC is not available: no
executable dccproc found.
May 27 11:21:53 mail-fb spamd[7666]: debug: all '*From' addrs:
[EMAIL PROTECTED]
May 27 11:21:53 mail-fb spamd[7666]: debug: all '*To' addrs:
May 27 11:21:53 mail-fb spamd[7666]: debug: is Net::DNS::Resolver
available? yes
May 27 11:21:53 mail-fb spamd[7666]: debug: trying (3) google.de...
May 27 11:21:53 mail-fb spamd[7666]: debug: looking up MX for
'google.de'
May 27 11:21:53 mail-fb spamd[7666]: debug: MX for 'google.de' exists?
1
May 27 11:21:53 mail-fb spamd[7666]: debug: MX lookup of google.de
succeeded => Dns available (set dns_available to hardcode)
May 27 11:21:53 mail-fb spamd[7666]: debug: is DNS available? 1
May 27 11:21:53 mail-fb spamd[7666]: debug: running meta tests; score
so far=1.27
May 27 11:21:53 mail-fb spamd[7666]: debug: is spam? score=1.27
required=5 tests=DATE_MISSING,NO_REAL_NAME
May 27 11:21:53 mail-fb spamd[7666]: server started on port 783/tcp
(running version 2.63)
May 27 11:21:53 mail-fb spamd[7666]: server pid: 7666
May 27 11:21:53 mail-fb spamd[7666]: logmsg: server started on port
783/tcp (running version 2.63)
May 27 11:21:53 mail-fb spamd[7666]: server started on port 783/tcp
(running version 2.63)