Content Filter BypassedSenders

I add addresses to the Exchange Content Filter's list of 'Bypassed Senders' so that they don't get filtered out by the content filtering. This option is dangerous so I only use it for internal addresses; specifically automated tasks on servers that send emails to a notification account from say [email protected] which isn't a email real account and would get filtered.

Get a list of the current bypassed senders:

[PS] C:\Documents and Settings\___\Desktop>Get-ContentFilterConfig

Name                                  : ContentFilterConfig
....ouput shortened for brevity....
BypassedSenders                       : {[email protected]}

To add another I could use the command:

[PS] C:\Documents and Settings\___\Desktop>Set-ContentFilterConfig -BypassedSenders "[email protected]","[email protected]"

Notice the existing address needed to be in there, this will replace all current entries. A better method to allow for ease of adding is:

[PS] C:\Documents and Settings\___\Desktop>$senders = (Get-ContentFilterConfig).BypassedSenders
[PS] C:\Documents and Settings\___\Desktop>$senders

             Length Local               Domain                   IsValidAddress
             ------ -----               ------                   --------------
                 35 notarealaddress     domain.p...                        True


[PS] C:\Documents and Settings\___\Desktop>$senders.add("[email protected]")
[PS] C:\Documents and Settings\___\Desktop>$senders

             Length Local               Domain                   IsValidAddress
             ------ -----               ------                   --------------
                 35 notarealaddress     domain.p...                        True
                 34 another_fake_addy   domain.p...                        True


[PS] C:\Documents and Settings\___\Desktop>Set-ContentFilterConfig -BypassedSenders $senders

Notice the use of $senders.add(), this could have been used multiple times before saving the new list stored in $senders. Also $senders.remove() could be used to get the list, remove an address and then save it back.


Previous page: Backup Print Server
Next page: Disconnected Mailboxes