/^(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.



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
PDXLUG mailing list
[EMAIL PROTECTED]
http://pdxlug.org/mailman/listinfo/pdxlug

Reply via email to