On Fri, 31 Mar 2017 08:38:28 -0400 (EDT)
dav...@shopblt.com wrote:

> Reindl Harald <h.rei...@thelounge.net> wrote ..
> > 
> > you said in your other mail "This is for sitewide filtering" and
> > for that a own wiki page exists which can be found by type
> > "spamassassin sitewide" in search engines
> > 
> > did you consider click at this link?
> > https://wiki.apache.org/spamassassin/SiteWideBayesSetup
> > 
> > In local.cf, tell SpamAssassin where to find the Bayesian database
> > files:
> > 
> > bayes_path /var/spamassassin/bayes_db/bayes
> > bayes_file_mode 0777
> > 
> > this stuff has no business to live under /root  
> 
> Yes, I read the wiki page. I had no bayes_path setting in my
> local.cf. Spamassassin put the bayes database under /root on its own. 
 

BTW you should check that out because it means that spamc is either
been run as root or being run as spamc -u root.


> To keep it simple, I created /var/bayes, did chown spamd:root on it,
> copied the bayes files and user_prefs from /root/.spamassassin, chmod
> 777 all of it (for now to get this working) and made these changes to
> local.cf:
> 
> bayes_path /var/bayes/

You missed the following line in the wiki: "Note that the argument to
bayes_path is a combination of a directory
(/var/spamassassin/bayes_db/) and a filename prefix (bayes)." 


> bayes_file_mode 0777

Don't do that. It's not necessary, and shouldn't be in the wiki, it's
just a cheesy hack. 


> After restarting the service, spamassassin continues with the same
> complaints and still no bayes processing:

Reply via email to