On Sat, 6 Dec 2003, Lukreme wrote: > spamd[33762]: Cannot open bayes databases > /home/user/.spamassassin/bayes_* R/O: tie failed: Permission denied > spamd[33762]: processing message > <[EMAIL PROTECTED]> for kremels:5003. > spamd[33762]: clean message (0.8/5.0) for user:5003 in 0.2 seconds, > 5526 bytes. > > /home/user/.spamassassin $ ls -lstr > total 6338 > 2 -rw-rw-rw- 1 user staff 1218 Oct 6 15:28 user_prefs > 2 -rw-rw-rw- 1 user staff 199 Oct 6 15:28 bayes_msgcount > 4160 -rw------- 1 user staff 5111808 Dec 4 09:51 bayes_toks > 2112 -rw-rw-rw- 1 user staff 2637824 Dec 4 09:51 bayes_seen > 62 -rw------- 1 user staff 62030 Dec 4 09:51 bayes_journal > > where user is any user on the system. > > $ psa spamd > postfix 565 0.0 3.3 21908 4132 ?? Is 9:17PM 0:04.03 > /usr/local/bin/spamd -a -c -d -u postfix (perl) > > is how spamd is running.
You've got spamd running as the user "postfix" (that "-u postfix" command line argument). Thus the user postfix needs to have write permissions to the bayes_* files. but in that directory listing you show: > 4160 -rw------- 1 user staff 5111808 Dec 4 09:51 bayes_toks So 'postfix' has -no- access permissions to "user"s bayes_toks Thus the permission errors. You have two different options: 1) run spamd as root and be sure that you pass the correct user name via "spamc -u user" for each message. 2) Set the global 'bayes_file_mode' option to 0666 so that the spamd process always has read-write permission, regardless of who it is run as. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk