Hi,
Trying to implement user specific bayes. My current setup is setup as follows in regards to global bayes. I'm also using amavis:
bayes_path /opt/sa-bayes/bayes
bayes_file_mode 0777
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 0
bayes_auto_learn_threshold_spam 15
bayes_auto_learn_threshold_nonspam -5
According to various things I've read online, I've setup the following in /etc/default/spamassassin in an attempt to setup user specific bayes:
OPTIONS="--create-prefs --max-children 5 --helper-home-dir=/opt/sa-bayes-users/%u -x -u amavis"
I've also created a bunch of subdirectories with usernames under /opt/sa-bayes-users. Example:
/opt/sa-bayes-users/bob@domain.tld<mailto:/opt/sa-bayes-users/bob@domain.tld>
/opt/sa-bayes-users/larry@domain.tld<mailto:/opt/sa-bayes-users/larry@domain.tld>
Etc...
I've setup the owner in /opt/sa-bayes-users/ to amavis and I've also setup the permissions to 700.
I've run a test sa-learn as follows where /mnt/data/amavis/clean/n/nTutbwTMVWzK is the actual e-mail file I use to train SA:
sa-learn --spam --dbpath /opt/sa-bayes-users/bob@domain.tld /mnt/data/amavis/clean/n/nTutbwTMVWzK
and it did seem to create bayes_toks and bayes_seen files under the /opt/sa-bayes-users/bob@domain.tld<mailto:/opt/sa-bayes-users/bob@domain.tld> directory as expected.
Is this all that's required to get this working?
What happens to the global bayes file in local.cf? Is that no longer used?
How do the following settings from the local.cf figure in the user specific bayes files?
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 0
bayes_auto_learn_threshold_spam 15
bayes_auto_learn_threshold_nonspam -5
Do the user specific bayes have the same requirements to train them with at least 200 messages? before they start working?
Thanks in advance
Trying to implement user specific bayes. My current setup is setup as follows in regards to global bayes. I'm also using amavis:
bayes_path /opt/sa-bayes/bayes
bayes_file_mode 0777
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 0
bayes_auto_learn_threshold_spam 15
bayes_auto_learn_threshold_nonspam -5
According to various things I've read online, I've setup the following in /etc/default/spamassassin in an attempt to setup user specific bayes:
OPTIONS="--create-prefs --max-children 5 --helper-home-dir=/opt/sa-bayes-users/%u -x -u amavis"
I've also created a bunch of subdirectories with usernames under /opt/sa-bayes-users. Example:
/opt/sa-bayes-users/bob@domain.tld<mailto:/opt/sa-bayes-users/bob@domain.tld>
/opt/sa-bayes-users/larry@domain.tld<mailto:/opt/sa-bayes-users/larry@domain.tld>
Etc...
I've setup the owner in /opt/sa-bayes-users/ to amavis and I've also setup the permissions to 700.
I've run a test sa-learn as follows where /mnt/data/amavis/clean/n/nTutbwTMVWzK is the actual e-mail file I use to train SA:
sa-learn --spam --dbpath /opt/sa-bayes-users/bob@domain.tld /mnt/data/amavis/clean/n/nTutbwTMVWzK
and it did seem to create bayes_toks and bayes_seen files under the /opt/sa-bayes-users/bob@domain.tld<mailto:/opt/sa-bayes-users/bob@domain.tld> directory as expected.
Is this all that's required to get this working?
What happens to the global bayes file in local.cf? Is that no longer used?
How do the following settings from the local.cf figure in the user specific bayes files?
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 0
bayes_auto_learn_threshold_spam 15
bayes_auto_learn_threshold_nonspam -5
Do the user specific bayes have the same requirements to train them with at least 200 messages? before they start working?
Thanks in advance