High Technology & Service All customers want to happen.

Support

Board

KISARBL 참조하여 SENDMAIL 스팸필터링 설정

LINUX
작성자
nstor
작성일
2016-09-06 11:50
조회
3266
KISARBL 참조하여 SENDMAIL 스팸필터링 설정

기존 sendmail.mc 및 sendmail.cf orig 백업후

sendmail.mc 파일 174 라인쪽에 추가합니다.
[root@nserver mail]# cat -n sendmail.mc
1 divert(-1)dnl
2 dnl #
3 dnl # This is the sendmail macro config file for m4. If you make changes to
4 dnl # /etc/mail/sendmail.mc, you will need to regenerate the
5 dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
6 dnl # installed and then performing a
7 dnl #
8 dnl # make -C /etc/mail
9 dnl #
10 include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
.
.
155 LOCAL_DOMAIN(`localhost.localdomain')dnl
156 dnl #
157 dnl # The following example makes mail from this host and any additional
158 dnl # specified domains appear to be sent from mydomain.com
159 dnl #
160 dnl MASQUERADE_AS(`mydomain.com')dnl
161 dnl #
162 dnl # masquerade not just the headers, but the envelope as well
163 dnl #
164 dnl FEATURE(masquerade_envelope)dnl
165 dnl #
166 dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
167 dnl #
168 dnl FEATURE(masquerade_entire_domain)dnl
169 dnl #
170 dnl MASQUERADE_DOMAIN(localhost)dnl
171 dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
172 dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
173 dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
174 FEATURE(dnsbl, `spamlist.or.kr', `Rejected - see http://www.kisarbl.or.kr/')dnl
175 MAILER(smtp)dnl
176 MAILER(procmail)dnl

cf 파일을 만들어 줍니다.
[root@nserver mail]# m4 sendmail.mc > sendmail.cf
변경후 추가된 부분

< # 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/

서비스를 재시작 합니다.

service sendmail restart

#스팸메일 #sendmail #KISABRL #스팸메일필터설정
top