How to block domains not for all mailboxes in our organization?
Hello everybody! Need some advice - I have a script to block some domains ("black domains list") - I am using this command: Set-SenderFilterConfig -BlockedDomains:$list But now I need to block these domains not for all mailboxes in our organization, for example: somebody is sending a message from "black" domain company.com and there is a mailbox user1@ourcompany.com - so only this user should receive message from "black" domain. Any others should receive nothing even their addresses are in copy. Is it possible? Thanks.
February 10th, 2015 3:09am

Hi,

When we use Set-SenderFilterConfig BlockedDomains to block domain, exchange will block any messages from that domain without any exception.

The only thing I can think of is transport rule, so please try to create this transport rule to have a test:

If this transport rule doesn't work, then there is no way to block domain not for all mailboxes in organization based on my knowledge.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
February 11th, 2015 12:45pm

You know, I found some commands in PowerShell, for example:

Set-MailboxJunkEmailConfiguration -Identity admin -BlockedSendersAndDomains @{add="postmaster@domain.com")

Set-MailboxJunkEmailConfiguration -Identity admin -BlockedSendersAndDomains @{remove="postmaster@domain.com")

So now I am able to add/remove some e-mails in "blacklist". But: there is a so much time to apply new address, is it normal? It's about 10-15 minutes (!!!) to make changes.

February 13th, 2015 10:00am

Hi,

I am glad to hear that you can add some emails in the "blacklist".

When a mail rule is created or an existing transport rule is modified or deleted, the change is replicated to all Active Directory domain controllers in the organization. All the Exchange servers in the organization then read the new configuration from the Active Directory servers and apply the new or modified transport rules. So it's depend on the deployment of your environment.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
February 15th, 2015 8:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics