[thelist] Sendmail and spammers file
Morbus Iff
morbus at disobey.com
Thu Dec 21 15:45:34 CST 2000
>Is it possible to use sendmail to block messages based on the subject? I
>am getting that stupid snow white virus sent to one of my accts atleast 2-3
>times a day. I don't want to learn procmail if I don't have to. Any ideas?
Yup, indeedy. Add the following into your /etc/sendmail.cf. You'll see that
these rules were used back when the ILOVEYOU virus was out, but they're
simple to modify for variations of the Snow White one...
#########################################################################
# virus checking code
#########################################################################
HSubject: $>Check_Subject
D{MPat}ILOVEYOU
D{MPat2}Joke
D{MPat3}Fwd: Joke
D{MMsg}This message may contains the LoveLetter virus or a mutation thereof.
SCheck_Subject
R${MPat} $* $#error $: 553 ${MMsg}
R${MPat2} $* $#error $: 553 ${MMsg}
R${MPat3} $* $#error $: 553 ${MMsg}
RRe: ${MPat} $* $#error $: 553 ${MMsg}
RRe: ${MPat2} $* $#error $: 553 ${MMsg}
RRe: ${MPat3} $* $#error $: 553 ${MMsg}
Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/
More information about the thelist
mailing list