• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

use only local bayesdb

Red Squirrel

No Lifer
How can I force spamassassin to only look at a single bayes db instead of one per user. One per user is silly and gives way too much administrative overhead as I need to do sa-learn for every single user... screw that. I just want one single bayes DB. I tried adding

bayes_path /etc/mail/spamassassin/bayes

in local.cf

But I just get an error that it's invalid and it can't parse it. From what I read it wants a relative path to the home directories... but I want to use a single DB for each user.
 
I still need to do it for each user though. There's not that many, but it just seems kind of inefficient to do this as it will probably check that path AND the global one taking double the processing time that it should. I just want to disable the user based bayes completely if possible. But this is my alternative if there are no other ways to do it.
 
Why not set it up to use a real database? I did that just for myself anyway because I had locking issues with spamd.
 
I dont think that would solve my issue though, i still need to figure how to tell it to use the same DB for each user instead of 1 per user.

I may just go ahead and modify each user profile individually so that it uses the global db.

But I do want to definately solve the issue that says bayes_path /etc/mail/spamassassin/bayes is invalid, since it will now spit out that error every time I do a --lint.
 
I don't have any mention of the database in my user preferences, it's a global thing. And even if it is, fixup the users you have and put the ~/.spamassassin/user_prefs file in /etc/skel so it's put in new home directories by default.

But I do want to definately solve the issue that says bayes_path /etc/mail/spamassassin/bayes is invalid, since it will now spit out that error every time I do a --lint.

You shouldn't have it in /etc anyway, that's for configuration files not databases.
 
Thats the idea, I moved it away from its default location, and want to specify where it is but it wont let me use the command. It was originally in etc but changed the path to /data/misc/bayesdb.
 
Back
Top