SpamAssassin
Erscheinungsbild
Konfiguration
/etc/mail/spamassassin/local.cf
Update der Filter-Regeln
Am besten als cron-Job in /etc/cron.daily/spamassassins-update:
#!/bin/sh
/usr/bin/sa-update --channel updates.spamassassin.org --gpgkeyfile /etc/spamassassin/keys.txt
if [ $? = 0 ]; then
# Update war verfuegbar
systemctl restart spamd
else
exit 0 # wenn kein Update da ist, wuerde sonst 1 zurück gegeben, was eine cron-Nachricht bedeuten wuerde
fi
Zuvor noch den GPG Key holen:
wget http://spamassassin.apache.org/updates/GPG.KEY gpg --import GPG.KEY sa-update --import GPG.KEY cat GPG.KEY >> /etc/spamassassin/keys.txt
Die Dateien liegen in /var/lib/spamassassin/. Siehe auch RunningSaUpdate und RuleUpdates.