procmail 셋팅시질문
여기저기 참조해서 procmail을 설치햇는데
스펨메일이 필터링이안되내요
아래 sendmail.cf 파일######################*****##############
### PROCMAIL Mailer specification ###
##################*****##################
##### $Id: procmail.m4,v 8.20 1999/10/18 04:57:54 gshapiro Exp $ #####
Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
T=DNS/RFC822/X-Unix,
A=procmail -Y -m $h $f $u
##################################################
### Local and Program Mailer specification ###
##################################################
##### $Id: local.m4,v 8.50.16.2 2000/09/17 17:04:22 gshapiro Exp $ #####
#
# Envelope sender rewriting
#
SEnvFromL=10
R<@> $n errors to mailer-daemon
R@ <@ $*> $n temporarily bypass Sun bogosity
R$+ $: $>AddDomain $1 add local domain if needed
R$* $: $>MasqEnv $1 do masquerading
#
# Envelope recipient rewriting
#
SEnvToL=20
R$+ < @ $* > $: $1 strip host part
#
# Header sender rewriting
#
SHdrFromL=30
R<@> $n errors to mailer-daemon
R@ <@ $*> $n temporarily bypass Sun bogosity
R$+ $: $>AddDomain $1 add local domain if needed
R$* $: $>MasqHdr $1 do masquerading
#
# Header recipient rewriting
#
SHdrToL=40
R$+ $: $>AddDomain $1 add local domain if needed
R$* < @ *LOCAL* > $* $: $1 < @ $j . > $2
#
# Common code to add local domain name (only if always-add-domain)
#
SAddDomain=50
R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified
R$+ $@ $1 < @ *LOCAL* > add local qualification
Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u
Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/,
T=X-Unix/X-Unix/X-Unix,
A=smrsh -c $u
/etc/procmailrc
LOGFILE=/var/log/procmail
VERBOSE=YES
#LOGABSTRACT=no
PATH="/usr/bin:$PATH"
SHELL=/bin/sh
:0
* ^Subject: .*(KSC5601|ks_c_5601-1987)
/var/spool/mail/encoding
:0
* ^Subject: .*(=B1=A4=B0=ED|saSw7Q==?=|\7GksO1d|=BC=BA=C0=CE=B1=A4=B0=ED)
/var/spool/mail/encoding
:0
* ^Subject: .*(=B1=A4=B0=ED|saSw7Q==?=|\7GksO1d|=BC=BA=C0=CE=B1=A4=B0=ED)
/var/spool/mail/encoding
:0
* ^Content-Type: *text/plain
{
:0 fbw
* ^Content-Transfer-Encoding: *quoted-printable
|/usr/bin/mmencode -u -q
:0 Afhw
|/usr/bin/formail - I "Content-Transfer-Encoding: 8bit" -A "X-Automatic-MIME-Conversion-by-procmail: QP to 8bit"
:0 fbw
* ^Content-Transfer-Encoding: *base64
|/usr/bin/mmencode -u -b
:0 Afhw
|/usr/bin/formail -I "Content-Transfer-Encoding: 8bit" -A "X-Automatic-MIME-Conversion-by-procmail: Base64 to 8bit"
}
:0 B
* ^.\$\)C
{
:0 fbw
|/usr/bin/hmconv -u
:0 fhw
* ^Content-Type: text/plain
|/usr/bin/formail -c -I "Content-Type: text/plain; charset=EUC-KR" -I "Content-Transfer-Encoding: 8bit"
:0 Efhw
* ^Content-Type: text/html
|/usr/bin/formail -c -I "Content-Type: text/html; charset=EUC-KR" -I "Content-Transfer-Encoding: 8bit"
:0 Efhw
* !^Content-Type:
|/usr/bin/formail -c -I "Content-Type: text/plain; charset=EUC-KR" -I "Content-Transfer-Encoding: 8bit"
:0 fhw
|/usr/bin/formail -A "X-Automatic-Korean-Mail-Conversion: iso-2022-kr to euc-kr"
}
DROPPRIVS=yes
:0 fhw
* Content-Type:.+; charset="?EUC-KR
|/usr/bin/formail -c | /usr/bin/hcode -dk -m
:0 Efhw
* ^(Subject|From|Cc):.*=\?EUC-KR\?(B|Q)\?
|/usr/bin/formail -c | /usr/bin/hcode -dk -m
:0 Efhw
*^(Subject|From):.*=\?[a-zA-Z]+[0-9a-zA-Z\-]+\?(B|Q)\?
|/usr/bin/formail -c | /usr/bin/hcode -dk -m
:0 Efhw
* ^(Subject|From|Cc):.*=\?[a-zA-Z]+[_0-9a-zA-Z\-]+\?(B|Q)\?
|/usr/bin/formail -c | /usr/bin/hcode -dk -m
:0 Efhw
* ^(Subject|From|Cc):.*=\?ISO-8859-1\?(B|Q)\?
|/usr/bin/formail -c | /usr/bin/hcode -dk -m
# 스팸 메일 방지
# 스팸 메일러 필터링
# 메일러
:0 EH
* ^X-Mailer:.*Mailtouch
/dev/null
:0 EH
* ^X-Mailer:.*DiffondiCool
/dev/null
:0 EH
* ^X-Mailer:.*Merge \& Group Mailer
/dev/null
:0 EH
* ^X-Mailer:.*redspider
/dev/null
# 수신자
:0 EH
* ^To:.*undisclosed-recipients:;
/dev/null
# 발신자
:0 EH
* ^From:.*yesgirl
/dev/null
:0 EH
* ^From:.*성유리
/dev/null
:0 EH
* ^From:.*이효리
/dev/null
:0 EH
* ^From:.*섹스
/dev/null
이렇게햇는데 젼혀 필터링이안된내요
좀보시고 답변좀해주새요 스펨떼메미치것읍니다...
댓글 달기