Subject: Re: handy anti-virus-mail hint
To: None <kpneal@pobox.com>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-users
Date: 09/21/2003 21:26:18
kpneal@pobox.com writes:
> On Fri, Sep 19, 2003 at 12:04:39PM -0400, Perry E. Metzger wrote:
> >
> > For many of us, the constant stream of Microsoft outlook viruses is
> > just an annoyance rather than a threat, but it is a big annoyance none
> > the less. I find the following in the header_checks of my postfix
> > configuration nicely kills all such garbage before it hits me:
> >
> > /^Content-(Type|Disposition):.*(file)?name=.*\.(asd|bat|chm|cmd|com|dll|exe|hlp|hta|js|jse|lnk|ocx|pif|scr|shb|shm|shs|vb|vbe|vbs|vbx|vxd|wsf|wsh)/ REJECT Sorry, we do not accept .${3} file types.
>
> Doesn't this cause the message to bounce back to someone who didn't
> send it?
No. It doesn't. Think about how viruses get sent for a minute, and
think about what REJECT means to postfix.
Perry