initial commit of file from CVS for smeserver-learn on Sat Sep 7 20:30:28 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:30:28 +10:00
parent 931fa41b7f
commit 6a26018715
41 changed files with 586 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# default is 0, if kept to 0 we can not play there
/sbin/e-smith/db configuration setprop spamassassin UseBayes 1
# default is empty, we shall set it if we want to have a run
/sbin/e-smith/config getprop spamassassin BayesAutoLearnThresholdSpam >/dev/null|| /sbin/e-smith/config setprop spamassassin BayesAutoLearnThresholdSpam 6.00
/sbin/e-smith/config getprop spamassassin BayesAutoLearnThresholdNonspam >/dev/null|| /sbin/e-smith/config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
# we really need spamassassin running
/sbin/e-smith/config setprop spamassassin status enabled
# default is 0 for no reject
#/sbin/e-smith/config setprop spamassassin RejectLevel 12
# default is 5
#/sbin/e-smith/config setprop spamassassin TagLevel 4
# default is medium
#/sbin/e-smith/config setprop spamassassin Sensitivity custom

View File

@@ -0,0 +1,6 @@
#!/bin/bash
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
chmod 640 /var/spool/spamd/.spamassassin/bayes_*