phughes Posted April 29, 2014 Posted April 29, 2014 (edited) Hi Guys, I'm trying to block zip files from coming into our exchange server. I've done a little research and found that this is achieved by using the Transport Rules. I have created a rule with the following; Apply rule to messages when an attachment's content matches text patterns " *.zip" (without the "") ".zip" Delete the message without notifying anyone As far as i'm concerned, this looks correct. I then restart the transport service for good measure and then test it from an external source. The email arrives to my mailbox with a it's zip attachment. Any ideas? Thanks, Pete Edited April 29, 2014 by phughes
joshftw Posted April 29, 2014 Posted April 29, 2014 You can also use the AttachmentFilter if you've not massively configured it already. Can you run "Get-AttachmentFilterListConfig" and post the result. Assuming it looks fine then use "Add-AttachmentFilterEntry -Name *.zip -Type FileName" to filter out .zip files.
phughes Posted April 29, 2014 Author Posted April 29, 2014 Get-AttachmentFilterListConfig is not a recognised as the name of a cmdlet Add-AttachmentFilterEntry is not recognised as the name of a cmdlet ? 1
Oaktech Posted April 29, 2014 Posted April 29, 2014 I've done this to stop the kids distributing flash games... When I remember what I did i'll post it!
phughes Posted April 29, 2014 Author Posted April 29, 2014 When I remember what I did i'll post it! Thanks
joshftw Posted April 29, 2014 Posted April 29, 2014 Is that when run on the Exchange 2010 Edge Transport server?
Arthur Posted April 29, 2014 Posted April 29, 2014 when an attachment's content matches text patterns Shouldn't it be the name of the attachment? e.g. New-TransportRule -Name 'Block all .zip attachments' -Priority '0' -Enabled $true -AttachmentNameMatchesPatterns ' *.zip' -DeleteMessage $true 2
phughes Posted April 30, 2014 Author Posted April 30, 2014 That worked beautifully. There is no attachment name when you use EMC, so I didn't even know that was an option. Thanks all
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now