Hits :
3475
Mini SpamAssassin HOWTO
SpamAssassin
http://spamassassin.apache.org/
What SpamAssassin Is
SpamAssassin is a mail filter which attempts to identify spam using
a variety of mechanisms including text analysis, Bayesian filtering,
DNS blocklists, and collaborative filtering databases.
SpamAssassin is a project of the Apache Software Foundation (ASF).
top
Installation
wget -c http://apache.otenet.gr/dist/spamassassin/source/Mail-SpamAssassin-3.2.5.tar.bz2
tar -jxvf Mail-SpamAssassin-3.2.5.tar.bz2
cd Mail-SpamAssassin-3.2.5
perl Makefile.PL
make
make install
top
Requirments
Formatter "highlight/html" not found
top
Usage
/usr/local/bin/spamassassin -- help
/usr/local/bin/spamassassin -D < sample-spam.txt
top
sa-learn
/usr/local/bin/sa-learn --backup > backup.txt
sa-learn --backup > sadb_`date +%Y%m%d`.bkp
/usr/local/bin/sa-learn --clear
/usr/local/bin/sa-learn --progress --no-sync --spam --mbox ~mail/spam
/usr/local/bin/sa-learn --progress --sync
Για maildir :
/usr/local/bin/sa-learn --spam /var/mail/folders/ebalaskas/.spam/cur/*
top
local.cf
/etc/mail/spamassassin/local.cf
http://www.yrex.com/spam/spamconfig.php
required_score 5.0
rewrite_header subject *****SPAM*****
report_safe 1
use_bayes 1
bayes_auto_learn 1
skip_rbl_checks 0
use_razor2 1
use_pyzor 1
ok_locales all
whitelist_from *otenet.gr
top
Debug
$ spamassassin -V
$ spamassassin --lint -D
top