initial commit of file from CVS for smeserver-learn on Sat Sep 7 20:30:28 AEST 2024
This commit is contained in:
20
root/etc/e-smith/events/actions/LearnSpam-init
Normal file
20
root/etc/e-smith/events/actions/LearnSpam-init
Normal 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
|
6
root/etc/e-smith/events/actions/LearnSpam-run
Normal file
6
root/etc/e-smith/events/actions/LearnSpam-run
Normal 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_*
|
Reference in New Issue
Block a user