以Procmail-Gateway過(guò)濾寄出信件病毒(3)_Mail服務(wù)器教程
vi /etc/sendmail.cf
在檔案最后加上以下的內(nèi)容:
注意:復(fù)制/貼上以下內(nèi)容有時(shí)會(huì)因?yàn)閔tml tag的問(wèn)題造成sendmail服務(wù)無(wú)法重新啟動(dòng),此時(shí)可下載完整sendmail.cf范例文件 (右鍵/另存目標(biāo))至本機(jī)再?gòu)?fù)制/貼上至服務(wù)器或上傳至服務(wù)器。
#在M
##### @(#)procmail.m4 8.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)
# 在my name for error messages設(shè)定的后面加上下面兩行
# Avoid host map lookups if address has this pseudo-domain on it CPprocmail
# 在Ruleset 98后面加上下面設(shè)定
# Filter all mail through procmail
#
# Strip the pseudo-domain and continue (already gone through the filter)
R$*<@$+.procmail>$* $@ $1<@$2.>$3
R$*<@$+.procmail.>$* $@ $1<@$2.>$3
#
# No pseudo-domain, send to filtering mailer
R$*<@$+.>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail>$3
R$*<@$+>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail>$3
9、建立過(guò)濾檔filter.rc
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-send the message
! -oi -f "$@"
- qmail+vpopmail+sqwebmail的安裝步驟(1)
- 分布式的Qmail郵件系統(tǒng)(2)
- 以Procmail-Gateway過(guò)濾寄出信件病毒(2)
- QMAIL+MH設(shè)計(jì)方案(2)
- Webmail攻防實(shí)戰(zhàn)(8)
- 用WebEasyMail架構(gòu)Web郵件服務(wù)器(3)
- 分布式的Qmail郵件系統(tǒng)(1)
- 構(gòu)建反病毒反垃圾郵件系統(tǒng)(二)
- 配置你的第一臺(tái)e-mail服務(wù)器(4)
- Win2003自帶mail服務(wù)器配置詳細(xì)過(guò)程
- 用WebEasyMail架構(gòu)Web郵件服務(wù)器(4)
- 電子郵件系統(tǒng)收發(fā)不正常的常見(jiàn)原因
- 相關(guān)鏈接:
- 教程說(shuō)明:
Mail服務(wù)器教程-以Procmail-Gateway過(guò)濾寄出信件病毒(3)。