Re: rejecting messages with attachments with postfix

Matt Alexander <[email protected]>
Newsgroups gmane.org.user-groups.linux.pdxlug
Message-ID <[email protected]>
On Sat, 24 Jul 2004, Carla Schroder wrote:

> On Saturday 24 July 2004 11:40 am, Joshua Schmidlkofer wrote:
> > /^(Content-(Type|Disposition):.*).*(file)?name="?.*\.(adp|ade|bas|bat|chm|
> com|cpl|cmd|crt|dll|enc|eml|exe|hlp|hta|inf|ins|isp|js|jse|lnk|mdb|mde|msc|
> msi|msp|mst|pcd|pif|reg|scr|sct|shs|url|vb|vbe|vbs|wsc|wsf|wsh|zip)"?/
> > REJECT Sorry, this organization is no longer accepting the type of
> > attachments that commonly carry viruses. Please contact email recipient
> > by phone for a mutually agreeable method of emailing attachments. Thank you!
> >
> >
> > That is the Regex that I use.  -  To add extentions is trivial, and it
> > covers the microsoft trash.  Also, it lets the other end know [in
> > theory] about that I am doing.
> >
> > I put that in files ref'd by 'mime_header_checks' and 'body_checks'
> >
> > js
>
> I use something like that too, except I only reference it in
> 'mime_header_checks'. What's your reason for also using 'body_checks'?

According to this, it looks like just using mime_header_checks is the
better way to go:

http://www.stahl.bau.tu-bs.de/~hildeb/postfix/postfix_sobigf.shtml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.