You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Will Nordmeyer <wi...@willspc.net> on 2006/05/19 12:10:29 UTC

Systemwide Bayes ...

I'm 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

 

Here's 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 ...

Posted by Kai Schaetzl <ma...@conactive.com>.
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. 
>  
> drwxrwxrwx    2 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 ...

Posted by Adam Lanier <ad...@krusty.madoff.com>.
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 ...

Posted by Michael Monnerie <mi...@it-management.at>.
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