Re: rejecting messages with attachments with postfix
Joshua Schmidlkofer <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.pdxlug |
|---|---|
| Message-ID | <[email protected]> |
/^(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 Carla Schroder wrote: > On Saturday 24 July 2004 12:56 am, Robby Russell wrote: > >>On Sat, 2004-07-24 at 00:55, Carla Schroder wrote: >> >>>Ok gurus, can you find any flaws with using this regex to reject all > > messages > >>>with attachments in Postfix? >>> >>>/filename=\"/ REJECT take your sorry attachments elsewhere, luser >>> >>>Put this in a file and call it mime_header_checks >>>Call it from main.cf with >>> >>>mime_header_checks = regexp:/etc/postfix/mime_header_checks >>> >>>It seems too easy to be true, or perhaps it's just too Draconian. Whatcha >>>think? >> >>Do you really want to send back such a nasty message each time someone >>has a vcard attachment? :-p >> > > > Nah, they should get a custom message: > > REJECT only lusers use vcards > > And then we can start a debate over GPG sigs: inline or attached? > > With luck, we'll avoid doing any real work at all for days and days and days. > _______________________________________________ PDXLUG mailing list [email protected] http://pdxlug.org/mailman/listinfo/pdxlug
signature.asc
(application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBAq0kcweM6t71VHsRAmzMAJ9mk566Wxd6a7FZ33+E5ERY2SNqYACgr5de XgXOSvUzN9qufWwFnLG7tFU= =sngW -----END PGP SIGNATURE-----