Date created: Tuesday, March 22, 2011 11:40:01 PM. Last modified: Thursday, December 13, 2012 11:41:20 AM
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 server1@internaldomain.tld 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 : {notarealaddress@domain.private}
To add another I could use the command:
[PS] C:\Documents and Settings\___\Desktop>Set-ContentFilterConfig -BypassedSenders "notarealaddress@domain.private","another_fake_addy@domain.private"
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("another_fake_addy@domain.private") [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