logo
search
Others

Fix Exchange Dynamic Distribution Group Creation by Email Domain Error

Steve KSteve K Sep 28, 2026 869 views

Question details

The user is attempting to create an Exchange Online dynamic distribution group, but the filter fails when trying to match users whose email addresses end with a specific domain.

How to Fix Exchange Dynamic Distribution Group Creation by Email Domain Error
Product
Exchange Online
Device & OS
not provided
Scenario
An IT administrator wants to automatically group users by their specific email domain using Exchange Online filters.
Observed behavior
The dynamic distribution group filter fails because it utilizes a prefix wildcard, which is unsupported in Exchange Online due to performance limitations.
Before you start

Verify that you have Exchange Administrator or Global Administrator privileges before attempting to modify dynamic distribution group rules or Entra ID settings.

Solution 1Recommended

Use Microsoft Entra ID Dynamic Membership Rules

Create a dynamic Microsoft 365 group in Microsoft Entra ID to successfully match users by their email domain.

Since Exchange Online dynamic distribution groups do not support prefix wildcards for performance reasons, Microsoft Entra ID is the recommended alternative. Entra ID dynamic groups support advanced queries, allowing you to accurately match domain suffixes.

1
Access Microsoft Entra ID

Log in to the Microsoft Entra admin center with your administrator credentials.

2
Create a New Group

Navigate to 'Groups', select 'All groups', and click on 'New group'.

3
Set Membership Type

Choose 'Microsoft 365' as the group type and set the 'Membership type' to 'Dynamic User'.

4
Add Dynamic Query

Click 'Add dynamic query' under the membership section. Construct a rule using syntax such as `(user.mail -match ".*@test.com")` to target the specific email domain.

5
Save and Complete

Save the query and click 'Create'. Once populated, this group functions identically to an Exchange dynamic distribution group and supports email delivery.

Use Microsoft Entra ID Dynamic Membership Rules
Propagation Time: Dynamic group memberships in Entra ID may take time to fully evaluate and populate depending on the size of your organization.
Free Microsoft Office alternative

Document Your IT Infrastructure with WPS Office

While Exchange configuration issues require Microsoft administrative tools, WPS Office is an excellent free, lightweight solution for documenting your IT policies, PowerShell scripts, and server rules.

  1. 1. Download and Install: Visit the official WPS Office website to download the free suite and install it on your workstation.
  2. 2. Draft IT Documentation: Launch WPS Writer to meticulously document your Exchange configurations, Entra ID membership queries, and administrative procedures.
  3. 3. Save and Share: Export your documents in standard Microsoft formats so your IT team can effortlessly view and collaborate on them.
Completely free and lightweight Office suite ideal for IT professionalsSeamless format compatibility with Microsoft Word, Excel, and PowerPoint (.docx, .xlsx, .pptx)Perfect for drafting and maintaining PowerShell script documentation and administration guidesFamiliar interface guarantees quick adoption without a steep learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does using a wildcard like '*@test.com' fail in Exchange Online filters?

Exchange Online dynamic distribution groups do not support prefix wildcards (such as starting a string with an asterisk) due to significant performance constraints during recipient evaluation.

Are Microsoft Entra ID dynamic groups compatible with Exchange Online?

Yes. When you configure a Microsoft 365 dynamic group in Microsoft Entra ID, it becomes mail-enabled and functions perfectly as a distribution list within your Exchange Online environment.

Where should I seek assistance for complex Exchange PowerShell scripts?

For advanced PowerShell scripting and automation inquiries, it is recommended to post your questions on Microsoft Q&A using the appropriate Exchange and PowerShell tags, where Microsoft engineers can provide dedicated support.