Thiết lập Spamassassin Hệ điều hành máy chủ Asianux Server 3
Trang 1Thiết lập Spamassassin
Hệ điều hành máy chủ Asianux Server 3
VietSoftware Inc
Asianux Vietnam
Ha noi, 16-20/06/2008
Trang 2Phiên bản cài đặt
spamassassin-3.1.9-1
Cấu hình spamassassin
file etc/mail/spamasassin/local.cf
# How many hits before a message is considered spam.
required_hits 5.0
# Add *****SPAM***** to the Subject header of spam e-mails
rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead) report_safe 1
# Use Bayesian classifier (default: 1)
use_bayes 1
# Bayesian classifier auto-learning (default: 1)
bayes_auto_learn 1
bayes_path /home/spamd/
bayes_file_mode 0666
Trang 3Chạy 2 lệnh sau để trao quyền cho SpamAsassin
#groupadd –g 505 spamd
#useradd -u 505 -g 505 -s /sbin/nologin -d /home/spamd spamd
Bật tắt dịch vụ
service spamassassin start
service spamassassin stop
Kiểm tra dịch vụ
Khởi động
service spamassassin start
Starting spamd: [OK]
Kiểm tra trạng thái của dịch vụ
service spamassassin status
spamd (pid 3144 3143 3044 ) is running
Trang 4Tài liệu tham khảo
http://spamassassin.apache.org/
http://www.yrex.com/spam/spamconfig.php
Trang 5Thank you!