8、修改sendmail.cf
vi/etc/sendmail.cf
在檔案最后加上以下的內(nèi)容:
注意:復(fù)制/貼上以下內(nèi)容有時會因?yàn)閔tmltag的問題造成sendmail服務(wù)無法重新啟動,此時可下載完整sendmail.cf范例文件(右鍵/另存目標(biāo))至本機(jī)再復(fù)制/貼上至服務(wù)器或上傳至服務(wù)器。
以下為引用的內(nèi)容:
#在M
#####@(#)procmail.m48.11(Berkeley)5/19/1998#####
Mprocmail,P=/usr/bin/procmail,F=DFMSPhnu9,S=11/31,R=21/31,T=DNS/RFC822/X-Unix,
A=procmail-f--Y-m$h$f$u
#(空此行一定要先空tab)
#在mynameforerrormessages設(shè)定的后面加上下面兩行
#Avoidhostmaplookupsifaddresshasthispseudo-domainonitCPprocmail
#在Ruleset98后面加上下面設(shè)定
#Filterallmailthroughprocmail
#
#Stripthepseudo-domainandcontinue(alreadygonethroughthefilter)
R$*<@$+.procmail>$*$@$1<@$2.>$3
R$*<@$+.procmail.>$*$@$1<@$2.>$3
#
#Nopseudo-domain,sendtofilteringmailer
R$*<@$+.>$*$#procmail$@/etc/procmail/filter.rc$:$1<@$2.procmail>$3
R$*<@$+>$*$#procmail$@/etc/procmail/filter.rc$:$1<@$2.procmail>$3
9、建立過濾檔filter.rc
以下為引用的內(nèi)容:
vi/etc/procmail/filter.rc
范例文件內(nèi)容如下:
LOGFILE=/var/log/procmail.log
NL="
"
LOGABSTRACT=no
POISONED_EXECUTABLES=/etc/procmail/poisoned-files
INCLUDERC=/etc/procmail/html-trap.procmail
:0#re-sendthemessage
!-oi-f"$@"
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|