Wednesday, October 2, 2013

How to Disable Attachment Filtering on Exchange 2010 Edge Transport

We had an interesting issue recently where our Exchange 2010 Edge Transport server was erroneously stripping out .docx, .xlxs, and .pdf files. 
 
There is a Microsoft KB to address the issue, however, it doesn't work for us.
 

The attachmentfilteragent has been enabled by default, and I wanted it off, so we needed to add an exception for our receive connector. It's not as straightforward as you would expect though to turn off attachment filtering on an Exchange 2010 Edge Transport server.
 
The first step is to see if there are any connectors on the attachment filter exception list presently.  To do so, run this command:
 

Get-AttachmentFilterListConfig
 
About the fifth line down you should see "ExceptionConnectors" which probably has nothing next to it. 
You can only turn off attachment filtering by referencing the GUID, so now we need to get the GUID of the relevant receive connector. 
 

Get-ReceiveConnector  | Format-List
 
This will give us all the properties of our Receive Connector, including the GUID, which will be listed about 10 lines up from the bottom. Now that we have the GUID, we can run the command to add the receive connector to the list of exceptions for attachment filtering by running this:
 

Set-AttachmentFilterListConfig –ExceptionConnectors [GUID]
 
Replacing [GUID] with the GUID we retrieved in the previous step.
 
Finally, run Get-AttachmentFilterListConfig again and check the Exceptions line, you should now see your receive connector listed there.
 
reference link:
 

No comments:

Post a Comment