1. 서버에 스팸어쌔신 설치


# yum install spamassassin


2. 필요한 perl CPAN 모듈 설치


# perl -MCPAN -e shell
cpan> install Digest::SHA1
cpan> install HTML::Parser
cpan> Install option perl modules...


2. /etc/mail/spamassassin/local.cf 에서 spamassassin 구성을 편집합니다.


# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe 0

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all


3. 모든 사람의 메일에 대해 spamc를 실행하도록 procmail에 지시합니다. 다음을 /etc/procmailrc에 추가하세요.


DROPPRIVS=yes

:0fw
| /usr/bin/spamc


4. 스팸 어쌔신 다시 시작


# service restart spamassassin


출처: http://www.webtrafficexchange.com/install-spamassassin-sendmail

0 댓글