RW <rwmailli...@googlemail.com> wrote .. > 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. >
I'll have to investigate this, I guess. I recall researching whether it should run as root or not, but there seemed to be arguments both ways. Like I said, Linux isn't my first love, or even a close friend, so I'll need to go find out even how the service is started from what obscure text file and fix that, since SA is still complaining about the user_prefs file. > > > > 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)." > You're right, I did miss that. Corrected and now I'm seeing bayes referenced in the log now. Not sure if it's actually working correctly as I see "bayes=1.000000,autolearn=no autolearn_force=no" every email now. Here's some log: Fri Mar 31 09:10:26 2017 [7739] info: spamd: connection from localhost [::1]:51072 to port 783, fd 6 Fri Mar 31 09:10:26 2017 [7739] info: spamd: creating default_prefs: /root/.spamassassin/user_prefs Fri Mar 31 09:10:26 2017 [7739] info: spamd: failed to create readable default_prefs: /root/.spamassassin/user_prefs Fri Mar 31 09:10:26 2017 [7739] info: spamd: processing message <edited out> for root:1010 Fri Mar 31 09:10:26 2017 [7739] info: spamd: identified spam (6.5/3.0) for root:1010 in 0.1 seconds, 1775 bytes. Fri Mar 31 09:10:26 2017 [7739] info: spamd: result: Y 6 - BAYES_99,BAYES_999,DEAR_SOMETHING,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED scantime=0.1,size=1775,user=root,uid=1010,required_score=3.0,rhost=localhost,raddr=::1,rport=51072,mid=<edited out>,bayes=1.000000,autolearn=no autolearn_force=no Seems like the BAYES_99,BAYES_999 entries means it's doing something. BTW, thanks for being patient with me and for the help!