STEP 1: /etc/mail/cf/cf/sendmail.mc 에 스펨필터 도메인을 다음과 같이 추가한다.

 

define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
FEATURE(dnsbl, `spamlist.or.kr', `Rejected - see http://www.kisarbl.or.kr/')dnl
MAILER(`local')dnl  

 

STEP 2: make를 실행하여 sendmail.cf를 만든다.  (원본에 다음 내용이 추가됨)

# map for DNS based blacklist lookups
Kdnsbl dns -R A -T<TMP>

# DNS based IP address spam list spamlist.or.kr
R$*                   $: $&{client_addr}
R$-.$-.$-.$-          $: <?> $(dnsbl $4.$3.$2.$1.spamlist.or.kr. $: OK $)
R<?>OK                        $: OKSOFAR
R<?>$+<TMP>           $: TMPOK
R<?>$+                        $#error $@ 5.7.1 $: Rejected - see http://www.kisarbl.or.kr/

 

STEP 3: sendmail 설치 및 재기동

cp sendmail.cf /etc/mail/sendmail.cf
/etc/init.d/sendmail restart