System:
Debian 3.1
qmail
SpamAssassin 3.1.7
Plesk 7.5.4
LÖSUNG (oBdA):Problem: 1. Update auf SpamAssassin 3.1.7, 2. Bayes global, 3. user_prefs weiterhin lokal.
Update von SpamAssassin (Debian):
Code: Select all
apt-get install spamassassinCode: Select all
rewrite_header subject *****SPAM*****
report_safe 1
use_bayes 1
bayes_auto_learn 1
bayes_path /root/.spamassassin
bayes_auto_learn_threshold_nonspam -2.0
bayes_auto_learn_threshold_spam 10.0
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
required_score 6.0
dns_available yes
blacklist_from 0733.com
score DATE_IN_FUTURE_96_XX 5.0
score FORGED_RCVD_HELO 3.9
score RCVD_ILLEGAL_IP 5.0
score HELO_DYNAMIC_IPADDR 5.0
score SUBJECT_FUZZY_MEDS 5.0
score DATE_IN_FUTURE_12_24 5.0
score DATE_IN_FUTURE_06_12 5.0
score DATE_IN_FUTURE_03_06 5.0
score DATE_IN_FUTURE_24_48 5.0
score DATE_IN_FUTURE_48_96 5.0
score DATE_IN_FUTURE_96_XX 5.0
score BAYES_00 0.1
score BAYES_50 5.0
score BAYES_60 6.0
score BAYES_80 7.0
score BAYES_95 8.0
score BAYES_99 9.0
Code: Select all
rm /etc/init.d/spamassassinMeine Bayes-DB habe ich also (siehe local.cf) in /root/.spamassassin/bayes (siehe Namensregelung Mail::SpamAssassin::Conf /root/.spamassassin/bayes_toks und /root/.spamassassin/bayes_seen). Der Ort der Bayes-DB ist natürlich eigentlich beliebig, solange ich den local.cf Eintrag (und alle folgenden bayes_path-Einträge) ändere.
/.spamassassin/user_prefs, /root/.spamassassin/user_prefs und /etc/spamassassin/user_prefs wird folgende letzte Zeile hinzugefügt:
Code: Select all
rewrite_header subject *****SPAM*****
required_score 7
bayes_path /root/.spamassassin/bayesCode: Select all
sa-learn --spam /var/qmail/mailnames/domain.de/spam/Maildir/cur/*Für weitere statistische Zwecke kopier-lösche ich die Spam(Ham)-Mails dann in einen Archivordner (2. CronJob):
Code: Select all
mv -f --target-directory=/root/spamarchiv /var/qmail/mailnames/domain.de/spam/Maildir/cur/*Code: Select all
sa-learn -D --sync
spamassassin -D --lint
/etc/init.d/psa-spamassassin restartInteressant wäre nun, ob zusätzlich eine Bewertung mittels der User-Bayes-DB geschehen könnte und wie dies umzusetzen wäre. (Also global + lokal) Als bayes per /.spamassassin/bayes und zusätzlich per /var/qmail/mailnames/domain.de/adresse/.spamassassin/bayes.
^ Falls jemand für diesen Absatz ein Lsg. hat, findet bzw. weiß ob eines der user_prefs Files unnötigerweise geändert wurde - bitte melden!
Gute Quellen für Support in dieser Richtung:
http://spamassassin.apache.org/full/3.1.x/doc/ SpamAssassin-Doc. 3.1.x
http://kb.swsoft.com/category123.php SW-Soft (Plesk) Knowledge-Base zu SpamAssassin
http://forum.sw-soft.com/ SW-Soft (Plesk) - Forum - bis auf Feodora AtomicTurtle Updates kaum gute Lösungen (bzw. hauptsächlich User-to-User-Support, falls man mal aktive Topics hat.