Tag Archives: (Get-ContentFilterConfig).ByPassedSenderDomains

Adding Domain/Sender to White list in Exchange 2010

When you need to White list Sender/Domain to Exchange 2010, you have to use power shell as this is not available from GUI

To view what currently is in the White List for senders, fire open the Exchange Management Power shell:
1- for white list individual e-mail address:
(Get-ContentFilterConfig).ByPassedSenders

2- for white listed domains
(Get-ContentFilterConfig).ByPassedSenderDomains

Now how to add an individual e-mail address or domain:
1- To whitelist a domain e.g. johnyassa.com you’d do the this:

$WhiteDomain = (Get-ContentFilterConfig).BypassedSenderDomains

$WhiteDomain.add(“johnyassa.com”)

Set-ContentFilterConfig -BypassedSenderDomains $WhiteDomain

2- To White list a sender e.g. john@johnyassa.com you’d do this:

$WhiteSender = (Get-ContentFilterConfig).BypassedSenders

$WhiteSender.add(“john@johnyassa.com”)

Set-ContentFilterConfig -BypassedSenders $WhiteSender

Now you can re run the first 2 commands and check their results to confirm your adding success

 

How to Whitelist a domain or email address in Microsoft Exchange 2010

How to Whitelist a domain or email address in Microsoft Exchange 2010

 

Whitelist features are not available via Exchange Management Console (the GUI), so this will have to be completed via the Exchange Powershell
Open powershell via the exchange menu item and run one of the following scripts, based on your requirement:

To check whats currently whitelisted (Bypassed Recipients):

Get-ContentFilterConfig

To whitelist a single email address:

$list = (Get-ContentFilterConfig).BypassedSenders
$list.add("new.mail@address.com")
Set-ContentFilterConfig -BypassedSenders $list

 

To whitelist an entire domain:

	
$list = (Get-ContentFilterConfig).BypassedSenderDomains
$list.add("domain.com")
Set-ContentFilterConfig -BypassedSenderDomains $list

That's it!
  • No labels