Book
- Basic setup of a SOHO server
- SoHo - Software repositories
- SoHo - Alias of loopback interface
- SoHo - IPtables configuration example
- SoHo - Webmin
- SoHo - DNS
- SoHo - VMWare
- SoHo - Windows
- SoHo - OpenVPN
- SoHo - Remote Desktop
- Nameserver on Windows XP forwarding to public DNS with private zones
- SoHO - NTP
- SoHo - SSH
- SoHo - Ubuntu prerequisites
- How to strengthen SSH
- Fixing Nessus complaints
- Java installation on RHEL 4
- Installing vsFTPd on CentOS
- How to setup CA (certificate authority)
- Installation of VIM X11 and archivers on RHEL 4 x86_64
- SoHo - MS & Open-Office
- User management
- CommuniGate Pro
- Backup
- Issue tracking for small groups
- Jabber setup and configuration
- Monitoring & Statistics
- Printing in SOHO
- Faxes in SOHO
- T38 Modem
- PostScript fonts for faxes
- Installing Brother MFU drivers on Ubuntu
- Installing Hylafax client on RHEL4 and Fedora
- Installing Hylafax server on RHEL4
- Installing Hylafax server on Ubuntu
- Integrating Hylafax with CUPS
- Integrating Hylafax with CommuniGate
- Managing Hylafax from Ubuntu client
- Sending and receiving faxes over internet (links)
- How to test faxing
- Drivers for Brother MFUs
- Brand new idea about faxing
- External faxing resources
- Antivirus & Antispam
- External SOHO References
- Supplementary SOHO procedures
SpamAssassin
Installation
Install and run the daemon
yum install -y spamassassin
Configure daemon options in /etc/sysconfig/spamassassin (SPAMDOPTIONS=...):
- -d - daemonize
- -c - create user preferences
- -m5 - allow 5 children maximum
- -H - use the spamc caller’s home directory
- -D - print debugging information
- -s daemon - syslog facility
Run daemon
chkconfig spamassassin on service spamassassin restart
Configuration
Edit /etc/mail/spamassassin/local.cf (options, all config files):
Rules by Michael Verbitsky
Scores for Michael Verbitsky's /etc/mail/spamassassin/local.cf (list of tests):
Rules by Alan Makoev
Download the rule file in /usr/share/spamassassin/99_russian_re.cf
Fix for weblancer.net etc mail feeds: score BODY_KOI8_RASSJLO4 1 2, score BODY_WIN1251_RASSJLO4 1 2
User preferences in database
Create database tables in mysql for spamassassin parameters
mysql -uroot -pPASS < [[#spamassassin.sql|/usr/share/cgpav/spamassassin.sql]]
Add this to /etc/mail/spamassassin/local.cf:
# userprefs in mysql user_scores_dsn DBI:mysql:spamassassin:localhost user_scores_sql_username spamassassin user_scores_sql_password spampass
Simple test
Verify that it works correctly
$ cd /group/public/anti
$ spamc -c < sample-nonspam.txt
0.0/5.0
$ spamc -c < sample-spam.txt
1000.0/5.0 $ spamc -c < sample-spam2.txt
7.7/5.0 $ spamassassin < sample-spam2.txt | head -5
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on localhost
X-Spam-Level: **************************************************
X-Spam-Status: Yes, score=1000.0 required=5.0 tests=GTUBE,
NO_RECEIVED,NO_RELAYS autolearn=no version=3.2.5Tricks
By default sa-learn created databases in ~/.spamassassin,but spamd takes them from /var/spool/mail/.spamassassin'.Therefore, run sa-learn with --dbpath=/var/spool/mail/.spamassassin
Possible fix: increase score for bayes filters, like
score BAYES_99 5.0 score BAYES_95 4.5 score BAYES_80 4.0 score BAYES_60 3.0 score BAYES_50 2.0
Related Links
- Adapting SA for russian (opennet.ru)
- Antispam technologies (lexa.ru)
- Cumulative rules for SA (xfyre.com)
- Current vanilla SA 3.2.x ruleset
- KLair: русские правила SA
- Makoev: russian ruleset for SA by Alan Makoev (very good!!!)
- Makoev: обсуждаем SA Алана Макоева
- Russian SA thread on ru-board
- Setting up spamassassin for russian spam (google search)
- Spamassassin HowTo (cf1.ru)
- Spamassassin project page
- генератор русских правил SA
- Обучение spamassassin при помощи Gmail
- русские настройки SA (google search)
- форум lissyara: spamassassin.cf имени Михаила Вербицкого
- форум lissyara: настройки SA
- Bayes's theorem
Attachments

- Visit Adapting SA for russian (opennet.ru)
- Visit Antispam technologies (lexa.ru)
- Visit Cumulative rules for SA (xfyre.com)
- Visit Current vanilla SA 3.2.x ruleset
- Visit KLair: русские правила SA
- Visit Makoev: russian ruleset for SA by Alan Makoev (very good!!!)
- Visit Makoev: обсуждаем SA Алана Макоева
- Visit Russian SA thread on ru-board
- Visit Setting up spamassassin for russian spam (google search)
- Visit Spamassassin HowTo (cf1.ru)
- Visit Spamassassin project page
- Visit генератор русских правил SA
- Visit Обучение spamassassin при помощи Gmail
- Visit русские настройки SA (google search)
- Visit форум lissyara: spamassassin.cf имени Михаила Вербицкого
- Visit форум lissyara: настройки SA
- Visit Bayes's theorem

Comments
Post new comment