{{anchor href="top"}}
Hits : **{{hits}}**
== Mini SpamAssassin HOWTO ==
{{ToC from="h2" to="h3"}}
=== 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 ===
%%(bash)
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 ===
%%(html)
REQUIRED module missing: Digest::SHA1
REQUIRED module missing: Net::DNS
optional module missing: Mail::SPF
optional module missing: Mail::SPF::Query
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Compress::Zlib
optional module missing: Mail::DomainKeys
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: Archive::Tar
optional module missing: IO::Zlib
optional module missing: Encode::Detect
%%
((#top))
-----------
=== Usage ===
%%(code)
/usr/local/bin/spamassassin -- help
/usr/local/bin/spamassassin -D < sample-spam.txt
%%
((#top))
-----------
=== sa-learn ===
%%(code)
/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 :
%%(code)
/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
%%(code)
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 ===
%%(code)
$ spamassassin -V
$ spamassassin --lint -D
%%
((#top))
-----------