Contact Problems

Can Exchange Dynamic Distribution Groups Filter by SMTP Domain?

Natalie TaylorNatalie Taylor Oct 10, 2026 868 views

Question details

The user wants to know if it is possible to configure an Exchange Dynamic Distribution Group to filter and include recipients based specifically on their SMTP email domain.

How to Filter Exchange Dynamic Distribution Groups by SMTP Domain
Product
Microsoft Exchange
Device & OS
not provided
Scenario
Organizations managing multiple SMTP domains need to automatically group recipients based on the email domain they belong to.
Observed behavior
Native filters for Dynamic Distribution Groups do not directly support filtering by SMTP domain out of the box, requiring alternative recipient attribute configurations.
Before you start

Verify whether your Exchange environment is cloud-only or hybrid, as this determines how user attributes are synchronized and which properties are available for filtering.

Solution 1Recommended

Use Custom Attributes to Filter by Domain

Since Dynamic Distribution Groups cannot directly filter by the SMTP domain parameter, map the domain to a custom attribute and use that for your group filter.

Microsoft Exchange does not natively support using the primary SMTP address domain as a direct condition in Dynamic Distribution Group (DDG) filters. To achieve the same result, administrators must populate an alternative attribute (such as CustomAttribute1 or Company) with a value representing the domain.

Once this attribute is uniformly applied to all relevant users, the DDG can be configured to filter based on that specific attribute.

1
Identify a target attribute

Choose an unused Active Directory or Exchange attribute, such as 'CustomAttribute1' or 'Company', to store the domain identifier for your users.

2
Update user attributes

Use the Exchange Admin Center or PowerShell to assign the target domain value (e.g., 'SecondaryDomain') to the chosen attribute for all users who share that SMTP domain.

3
Create the Dynamic Distribution Group

Navigate to the Exchange Admin Center, go to Recipients > Groups, select 'Add a group', and choose 'Dynamic distribution'.

4
Configure the filter rule

In the filter settings of the new group, set the condition to match the attribute you populated (e.g., set 'CustomAttribute1' equals 'SecondaryDomain').

Use Custom Attributes to Filter by Domain
Hybrid Environment Synchronization: If you are using a hybrid environment, ensure you update these attributes in your on-premises Active Directory and allow Azure AD Connect to sync the changes to Exchange Online before creating the group.
Free Microsoft Office alternative

Enhance Your Productivity with WPS Office

While Microsoft Exchange handles complex email routing and dynamic distribution groups, WPS Office offers a lightweight, highly compatible, and free alternative to Microsoft Office for all your document, spreadsheet, and presentation tasks.

  1. 1. Download WPS Office: Visit the official WPS website to download the free installer for your operating system.
  2. 2. Install the Software: Run the setup file and follow the on-screen instructions to complete the installation.
  3. 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without losing any formatting.
Seamlessly open, edit, and save Microsoft Word, Excel, and PowerPoint files formats.Familiar user interface that makes transitioning from Microsoft Office completely effortless.Lightweight installation that consumes significantly fewer system resources.Built-in robust PDF editing, conversion, and signing tools at no extra cost.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use PowerShell to filter Dynamic Distribution Groups by email address?

No, you cannot use the primary SMTP address directly in the RecipientFilter parameter for DDGs. You must base your PowerShell filters on other synchronized properties like Company, Department, or Custom Attributes.

Do these filter workarounds apply to both Exchange Online and on-premises?

Yes, filtering by custom attributes works in both cloud-only Exchange Online and on-premises Exchange setups. For hybrid configurations, always ensure the attributes are properly synced via Azure AD Connect.

How long does it take for a Dynamic Distribution Group to update its members?

In Exchange Online, the membership list of a Dynamic Distribution Group is typically calculated and updated automatically every 24 hours. You can also force a refresh manually using Exchange Online PowerShell.