Jump to content

Recommended Posts

Posted (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. :mad:

 

Any ideas?

 

Thanks,

Pete

Edited by phughes
Posted
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.
Posted

Get-AttachmentFilterListConfig is not a recognised as the name of a cmdlet

 

Add-AttachmentFilterEntry is not recognised as the name of a cmdlet

 

?

  • Thanks 1
Posted
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

  • Thanks 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...