Whitelist Top Level Domain - Exchange 2016

I can set a transport rule to BLOCK top level domain, but not whitelist them.

Is the correct syntax "Set-ContentFilterConfig -BypassedSenderDomains @{Add="*.gov"}" or is there something more?
RISLAAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CastroCEOCommented:
To whitelist it, you just need to run this

Set-ContentFilterConfig -BypassedSenderDomains domainA.com,domainB.com,domainC.com, ... , domainZ.com

Open in new window


To Block:
just need to enable the content filtering, automatically all the domains will be checked except those that are set in the command above.

https://technet.microsoft.com/en-us/library/aa995953%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396

What I do is to save all the line within a text file so that I can add or remove there, each time you call the Set-ContentFilterConfig cmdlet will rewrite the previous, so you need to keep track of the changes.
0
RISLAAuthor Commented:
I'm trying to whitelist .edu and .gov TLD
0
Jose Gabriel Ortega CastroCEOCommented:
Sadly it Just works on individuals domains so on the fly you need to go domain by domain, there's no option for the root domains
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.