Vasko's Tech Blog

Home » Exchange » Exchange 2010 anti spam whitelist domain

Exchange 2010 anti spam whitelist domain


Specific Address

$list = (Get-ContentFilterConfig).BypassedSenders
$list.add("new.mail@address.com")
Set-ContentFilterConfig -BypassedSenders $list
Entire Domain
[PowerShell]
$list = (Get-ContentFilterConfig).BypassedSenderDomains
$list.add(“domain.com”)
Set-ContentFilterConfig -BypassedSenderDomains $list
[/PowerShell]
 Verfiy
[PowerShell]
Get-ContentFilterConfig
[/PowerShell]

 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:

[PowerShell]
Set-ContentFilterConfig -BypassedSenderDomains @{Remove=”domain.com”}
[/PowerShell]

https://technet.microsoft.com/en-us/library/aa995952(v=exchg.80).aspx

http://dan-israel.com/blog/it/exchange-2010-whitelist/


Found this useful? Buy me a beer 🙂

BTC: 1PZFs46z4hVvfbJKmXVLpsSni6AJR9FpBA
ETH: 0x6DC323dD9688C7eC1153eA3db8C80283a1b80714


Leave a comment