作者wildwolf.bbs@Jong.GradDorm2.nctu.edu.tw (可愛的哲哲), 信區: firebird
標題[轉載] Re: sendmail 如何擋 Melissa ?
時間Coba BBS (Thu Apr 1 06:22:25 1999)
轉信站: GIBBS!egg.mm.ntut!JCPP
Origin: coba.dorm-gd2.nctu.edu.tw
【 以下文字轉載自 linux 討論區 】
【 原文由 porpoise.bbs@bbs.cs.nthu.edu.tw 所發表 】
※ 引述《Platin@bbs.ee.ntu.edu.tw (小虫)》之銘言:
> ※ 引述《smallufo.bbs@bbs.ee.nthu.edu.tw (Les Miserables)》之銘言:
> : 各位使用 Linux + sendmail 的 user
> : 你們如何面對此 Melissa 病毒?
> : 如何用 sendmail 檢查每一封信的內容?
> : 只要包含 Important Message From xxx 就退回 sender or discard ...
> : 請問該如何做?
> 參考一下:
> http://www.sendmail.com/
我去 http://www.sendmail.com 逛回來的結果.
在sendmail.cf 加入以下 RULESET,
( 適用於 Sendmail 8.9.x )
PS:建議放置在 'H' 開頭的其他行之後.
還有別忘了在 $* 和 $# 之間的是 tab 不是空白)
摘自 http://www.sendmail.com/blockmelissa.html
##########################################
# Kludgey Melissa virus checking routine.
# Just need enough of a pattern to match.
# Instructional note:
# The format for the rule is
# RExactly the thing you want to quote
# No quote marks, no tabs, absolutely nothing in
# parentheses (like this, they're considered comments
# and will be removed before they get to the rules).
# After the exact thing, then a tab, and the $#error.
# Note, the $* matches anything, so it's useful for
# wildcarding. This also scans all messages with
# Subject: headers and invokes a rule, so there is
# a performance hit.
HSubject: $>Check_Subject
D{MPat}Important Message From
D{MMsg}This message may contain the Melissa virus.
SCheck_Subject
R${MPat} $* $#error $: 553 ${MMsg}
RRe: ${MPat} $* $#error $: 553 ${MMsg}
##########################################
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: g864322.CHING.ab.nthu.edu.tw
※ 轉載:‧第一靠邊站 coba.dorm-gd2.nctu.edu.tw‧[FROM: Coba.Dorm-GD2.N]