[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: El dichoso enanito del pedazo ->sendmailversion



Paco Brufal wrote:

> On feb/15/2001, Primitivo Liberto wrote:
>
> > > /^From: Hahaha <hahaha@sexyfun.net>$/           REJECT
> > > /^Subject: Enanito si, pero con que pedazo!$/   REJECT
> > ¿y cómo se puede hacer algo así en sendmail?
>
>         Si que se puede, yo lo tenia antes para el ILOVEYOU, pero me pasé a
> postfix y perdí el sendmail.cf

--------/etc/mail/sendmail.mc---------
LOCAL_RULESETS
# This tells sendmail where to put the rules

HSubject: $>Check_Subject

D{MPat5}Enanito si, pero con que pedazo

D{MMsg5}This message may contain the Enanito virus.

R${MPat5} $*            $#error $: 550 ${MMsg5}
RRe: ${MPat5} $*        $#error $: 550 ${MMsg5}
--------------------------------

entre $* y $# debe existir un _tabulador_

así puedes crearte MPat's para i lve u i todos esos......con sus MMsg's de respuesta..
....tambien pudes chequear otras cabeceras a parte de HSubject......y el R y Re comprueva tanto que sean envios como reenvíos


salut&força
jaume teixi





Reply to: