If you have the Edge Transport Role installed on an Exchange 2010, mail may be rejected with the following error:
My.User@domain.com mail.domain.com #<mail.domain.com #5.7.1 smtp; 550 5.7.1 Message rejected as spam by Content Filtering.> #SMTP#
Don’t ask me why Microsoft has buried this feature! From what I can tell, the only way to whitelist in Exchange 2010 is through the Powershell – not the GUI. Thanks to Chris Caldwell for the fix.
Specific Address
$list = (Get-ContentFilterConfig).BypassedSenders $list.add("new.mail@address.com") Set-ContentFilterConfig -BypassedSenders $list
Entire Domain
$list = (Get-ContentFilterConfig).BypassedSenderDomains $list.add("domain.com") Set-ContentFilterConfig -BypassedSenderDomains $list
Verify
Get-ContentFilterConfig
Adding or Removing additional domains
You can enter several domains/addresses at one time by seperating with a common, as Fredrik notes in the comments below (i.e. *.domain.com,*.domaina.com,*.domainb.com,*.domainc.com). However, in certain circumstances you may wish to remove only one item from the entire list. To do this, use the MULTIVALUED PROPERTY. Here is an example:
Set-ContentFilterConfig -BypassedSenderDomains @{Remove="domain.com"}Share
MAR
About the Author:
The System Administrator is responsible for this website's functions. Content provided under the System Administrator's role is provided by various Subject Matter Experts and external sources. If you have questions regarding the content, please contact your Customer Service Representative.