You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Brandon Kuczenski <bk...@andrew.cmu.edu> on 2008/08/30 00:33:21 UTC

spamd can't find bayes files

Hey all,

I am transferring from one server running spamd 3.2.3 to a new one running 
3.2.4.  I copied the users' .spamassassin directories, but the new install 
cannot find them.  The logs report "no such file or directory" but the 
files are clearly there.  spamd is configured to setuid to the recipient, 
so I don't understand why it cannot find the files.

Here's the logs:
...
Aug 29 17:48:14 nucleus spamd[14923]: spamd: setuid to b succeeded
Aug 29 17:48:14 nucleus spamd[14923]: bayes: cannot open bayes databases 
/usr/home/b/.spamassassin/bayes_* R/O: tie failed:
Aug 29 17:48:14 nucleus spamd[14923]: spamd: processing message 
<MSGID> for b:500
Aug 29 17:48:14 nucleus spamd[14923]: bayes: cannot open bayes databases 
/usr/home/b/.spamassassin/bayes_* R/O: tie failed:
Aug 29 17:48:14 nucleus spamd[14923]: auto-whitelist: open of 
auto-whitelist file failed: auto-whitelist: cannot open 
auto_whitelist_path /usr/home/b/.spamassassin/auto-whitelist: No such file 
or directory

and yet, here's the files:

root@nucleus:~# ls -l /usr/home/b/.spamassassin/bayes_*
-rw-rw---- 1 b b   25032 2008-08-29 16:40 
/usr/home/b/.spamassassin/bayes_journal
-rw-rw---- 1 b b 5160960 2008-08-29 15:56 
/usr/home/b/.spamassassin/bayes_seen
-rw-rw---- 1 b b 2154496 2008-08-29 15:56 
/usr/home/b/.spamassassin/bayes_toks
root@nucleus:~# ls -l /usr/home/b/.spamassassin/auto-whitelist
-rw-rw---- 1 b b 20201472 2008-08-29 16:40 
/usr/home/b/.spamassassin/auto-whitelist
root@nucleus:~# ls -ld /usr/home/b/.spamassassin
drwxrwxr-x 2 b b 4096 2008-08-29 18:09 /usr/home/b/.spamassassin


root@nucleus:~# spamd --version
SpamAssassin Server version 3.2.4
   running on Perl 5.8.8
   with zlib support (Compress::Zlib 2.008)


spamd is invoked thus:

/usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d 
--pidfile=/var/run/spamd.pid

spamc is invoked from procmail:
| /usr/bin/spamc -u $LOGNAME

Any ideas?  The problem holds for other users as well.

Thanks in advance,
Brandon


--
Brandon Kuczenski
Department of Mechanical Engineering
Carnegie Mellon University