Posted on May 15, 2015 · Posted in Exchange

Manage Domains and Email Address Whitelist in Exchange Server 2013

Anti-spam protection in Exchange Server 2013, like in previous versions, gives an opportunity to create a whitelist of trusted email addresses and senders domains, mail from which regardless of their contents should always be received.

The mail from the whitelist senders (individuals or entire domains) is considered safe and the end users receive it even if it falls within the filtering rules. The whitelist of senders in Exchange Server 2013 can only be managed from Powershell command prompt (Exchange Management Shell).

Note. The whitelist of senders in Exchange 2007 and 2010 is configured in the same way.

The whitelist in Exchange 2013 is configured on Mailbox or Edge Transport server with the installed Exchange anti-spam protection.

The spam filter based on the content filtering checks if the address is in the white list. To edit the white list of addresses, the cmdlet ContentFilterConfig is used. The command has the following syntax:

Set-ContentFilterConfig -BypassedSenderDomains

After running this command, all messages from senders in domain will be received by the Exchange users regardless of their contents or attachments. (Further scanning with the Content Filter won’t take place.)

Set-ContentFilterConfig -BypassedSenderDomains

You can view the current contents of domains whitelist using this command:



If you have to add several domains to the white list at once, the command will look like this:

Set-ContentFilterConfig -BypassedSenderDomains,,

To add a certain email address to the Content Filter white list, use BypassedSenders parameter:

Set-ContentFilterConfig -BypassedSenders

The main problem of using Set-ContentFilterConfig cmdlet is that each time it is run, it completely rewrites (clears) the current white list of the safe senders. To avoid it, each time you have to add a new address/domain to this list, get the current white list of addresses, add a new one to it and upload it back to Exchange.

To add several domains to the Exchange white list (without clearing current list entries), you can use the following script:

$list = (Get-ContentFilterConfig).BypassedSenderDomains




Set-ContentFilterConfig -BypassedSenderDomains $list

If you are adding individual addresses:

$list = (Get-ContentFilterConfig).BypassedSenders



Set-ContentFilterConfig -BypassedSenders $list

To delete one entry from the white list of senders, run this command:

Set-ContentFilterConfig -BypassedSenderDomains @{Remove=""}


Set-ContentFilterConfig -BypassedSenders @{Remove=""}

Related Articles