Exchange Dynamic Distribution grp to filter some domain users to receive email only.

SQ 1 Reputation point
2022-12-28T07:12:28.523+00:00

Hi guys,

I already existing DDL grp created for office1 users. the users in office1 contains users from different email domain such as @StEv .com and @Company portal .com

currently, we decided not to let @Company portal .com users to receive the emails.

I checked the DDL filter rule, not sure what is the parameter to put for this.

can anyone coach me this? TQ in advance.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,750 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vasil Michev 111.7K Reputation points MVP
    2022-12-28T11:13:12.2+00:00

    You can add a condition (or exception) to your rule, based on the domain part of the UPN or EmailAddresses. For example:

    (WindowsLiveID -eq '*@tenant.onmicrosoft.com')   
    

    where WindowsLiveID value will match the UPN (used as workaround as UPN field doesn't support the corresponding filter). Alternatively, you can use fields such as Company or any of the customattributeXX values.

    0 comments No comments

  2. Alexandru Tofan 1 Reputation point
    2022-12-28T14:25:34.82+00:00

    There is also a way to understand exactly from which user this filter is applied with a GET on the DDL?

    0 comments No comments

  3. LilyLi2-MSFT 1,981 Reputation points
    2022-12-29T06:20:25.52+00:00

    Hi @SQ ,

    Welcome to the Microsoft Q&A platform!

    Through my tests, in Dynamic Distribution Groups, we don't have such a direct option to restrict members of specific domains from receiving email.

    In your case, we recommend that you create a new dynamic distribution group based on a specific domain.

    New-DynamicDistributionGroup -name "All Users - Domain Name" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (EmailAddresses -like '*@contoso.com')"  
    

    Besides, if you do not want to create a new DDL again, then you can also set up the following rule that users who are in a dynamic distribution group and have a domain of @Company portal .com will not be able to receive email.
    274695-1.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.