Systemwide Bayes ...
Im still having trouble switching to a systemwide Bayes. I have the following lines in my local.cf: # Enable the Bayes system use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Heres the directory drwxrwxrwx 2 nobody nobody 1024 May 19 06:07 bayes It has a lovely recent date but none of the bayes files are going into it. --Will
Re: Systemwide Bayes ...
On Freitag, 19. Mai 2006 12:10 Will Nordmeyer wrote: bayes_path /etc/mail/spamassassin/bayes/bayes Remember that this should be a file name. You showed a dir, maybe there's the problem? mfg zmi -- // Michael Monnerie, Ing.BSc- http://it-management.at // Tel: 0660/4156531 .network.your.ideas. // PGP Key: lynx -source http://zmi.at/zmi3.asc | gpg --import // Fingerprint: 44A3 C1EC B71E C71A B4C2 9AA6 C818 847C 55CB A4EE // Keyserver: www.keyserver.net Key-ID: 0x55CBA4EE pgpuEkWi22KZ9.pgp Description: PGP signature
Re: Systemwide Bayes ...
On Fri, 2006-05-19 at 14:55 +0200, Michael Monnerie wrote: On Freitag, 19. Mai 2006 12:10 Will Nordmeyer wrote: bayes_path /etc/mail/spamassassin/bayes/bayes Remember that this should be a file name. You showed a dir, maybe there's the problem? The bayes_path should actually point to a file prefix. As shown above, this would create: /etc/mail/spamassassin/bayes/bayes_toks /etc/mail/spamassassin/bayes/bayes_seen Mail::SpamAssassin::Conf man page says: bayes_path /path/to/file (default: ~/.spamassassin/bayes) Path for Bayesian probabilities databases. Several databases will be created, with this as the base, with _toks, _seen etc. appended to this filename; so the default setting results in files called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks etc. signature.asc Description: This is a digitally signed message part
Re: Systemwide Bayes ...
It actually is to a file... I was unclear in my first email. The bayes_path is: bayes_path /etc/mail/spamassassin/bayes/bayes The directory path for it is: /etc/mail/spamassassin/bayes And that's the directory I showed (showing that it has full write permissions and is owned by nobody). Inside that directory is where I expect the bayes_* files to be created. Full permissions exist on the directory, but nothing is created there. [root bayes]# pwd /etc/mail/spamassassin/bayes [root bayes]# ls -la total 3 drwxrwxrwx2 nobody nobody 1024 May 19 06:07 . drwxrwxr-x6 root root 2048 May 19 09:13 .. [root bayes]# --Will On Fri, 2006-05-19 at 14:55 +0200, Michael Monnerie wrote: On Freitag, 19. Mai 2006 12:10 Will Nordmeyer wrote: bayes_path /etc/mail/spamassassin/bayes/bayes Remember that this should be a file name. You showed a dir, maybe there's the problem? The bayes_path should actually point to a file prefix. As shown above, this would create: /etc/mail/spamassassin/bayes/bayes_toks /etc/mail/spamassassin/bayes/bayes_seen Mail::SpamAssassin::Conf man page says: bayes_path /path/to/file (default: ~/.spamassassin/bayes) Path for Bayesian probabilities databases. Several databases will be created, with this as the base, with _toks, _seen etc. appended to this filename; so the default setting results in files called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks etc.
Re: Systemwide Bayes ...
Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
Re: Systemwide Bayes ...
OK, I changed the path in local.cf to /home/spam-filter/bayes/bayes The owner of the dir is root, and the directory mode is 775. The spamd daemon runs as root I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ --Will Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
Re: Systemwide Bayes ...
OK, I changed the path in local.cf to /home/spam-filter/bayes/bayes The owner of the dir is root, and the directory mode is 775. The spamd daemon runs as root I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ --Will Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
RE: Systemwide Bayes ...
Seems like there is there a /root/.spamassassin/user_prefs file containing the bayes path and you are allowing user preferences. -Sietse From: Will Nordmeyer [mailto:[EMAIL PROTECTED] Sent: Fri 19-May-06 16:02 To: users@spamassassin.apache.org; users@spamassassin.apache.org Subject: Re: Systemwide Bayes ... OK, I changed the path in local.cf to /home/spam-filter/bayes/bayes The owner of the dir is root, and the directory mode is 775. The spamd daemon runs as root I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ --Will Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com http://www.conactive.com/
RE: Systemwide Bayes ...
No bayes path in the user_prefs file. There is a user_Prefs file, but, for the root account, it is all commented out. Seems like there is there a /root/.spamassassin/user_prefs file containing the bayes path and you are allowing user preferences. -Sietse From: Will Nordmeyer [mailto:[EMAIL PROTECTED] Sent: Fri 19-May-06 16:02 To: users@spamassassin.apache.org; users@spamassassin.apache.org Subject: Re: Systemwide Bayes ... OK, I changed the path in local.cf to /home/spam-filter/bayes/bayes The owner of the dir is root, and the directory mode is 775. The spamd daemon runs as root I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ --Will Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com http://www.conactive.com/
RE: Systemwide Bayes ...
Hmmm, odd What happens if you disable user preferences all together? From: Will Nordmeyer [mailto:[EMAIL PROTECTED] Sent: Fri 19-May-06 16:09 To: Sietse van Zanen; users@spamassassin.apache.org Subject: RE: Systemwide Bayes ... No bayes path in the user_prefs file. There is a user_Prefs file, but, for the root account, it is all commented out. Seems like there is there a /root/.spamassassin/user_prefs file containing the bayes path and you are allowing user preferences. -Sietse From: Will Nordmeyer [mailto:[EMAIL PROTECTED] Sent: Fri 19-May-06 16:02 To: users@spamassassin.apache.org; users@spamassassin.apache.org Subject: Re: Systemwide Bayes ... OK, I changed the path in local.cf to /home/spam-filter/bayes/bayes The owner of the dir is root, and the directory mode is 775. The spamd daemon runs as root I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ --Will Will Nordmeyer wrote on Fri, 19 May 2006 06:10:29 -0400: use_bayes 1 bayes_file_mode 0777 bayes_path /etc/mail/spamassassin/bayes/bayes Here's the directory. drwxrwxrwx2 nobody nobody 1024 May 19 06:07 bayes You *do* have a home dir for your spamd as you told in your other posting. So, use that! /etc/mail is usually somewhat permission-restricted or your sendmail will complain, also /etc is not intended to hold such data. Move the directory to your spamd homedir, set filemode to 0666, change owner and group to match spamd, there is no need to have 777 for the bayes directory. Again, test with spamassassin -D --lint. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com http://www.conactive.com/ http://www.conactive.com/
Re: Systemwide Bayes ...
Will Nordmeyer wrote on Fri, 19 May 2006 10:02:27 -0400: The owner of the dir is root, and the directory mode is 775. If you want all users be able to write to these files you will need a 6 at the end. I ran spamassassin -D --lint and it still pulled the bayes db to be /root/.spamassassin/bayes_toks /root/ Hm, you didn't give that important information in your first posting! You just said it wouldn't populate your intended path. *That* is a completely different type of problem. If spamd and command line usage use different Bayes settings (as it seems to be the case here) then you are using different SA settings for spamassassin (command line) and spamd. If the problem happens for both then none of them is using the local.cf that you want them to use. You can easily check this by looking carefully at the beginning of the -D output. To make it even more visible insert a bloody wrong variable in that local.cf. If it really gets used (what I doubt) then you should be made aware of that in the --lint output. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com