[Wiltshire] Fed up of deleting zip file junk

David Fletcher dave at thefletchers.net
Mon Aug 29 16:29:19 UTC 2016


Getting really hacked off with all of the jerks out there sending out
spam with presumably windows virus infected zip files attached.
Actually, I've not had a legitimate email with a zip file attachment in
a very long time so I'm thinking of implementing this on my postfix
server to simply reject them:-

Configuration line in main.cf
mime_header_checks = regexp:/etc/postfix/blocked_attachments

The blocked_attachments file contains:
/name=[^>]*\.(pdf|zip)/ REJECT

which appears to be a standard rejection mechanism in more than one
how-to that I've found.

Question is, if I also implement a postfix white list, will the white
list override the reject mechanism to allow delivery of zip or other
attachments from legitimate sources?

Thanks for any help and advice,

Dave




More information about the Wiltshire mailing list