Can Exchange Dynamic Distribution Groups Filter by SMTP Domain?
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.

- 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.
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.
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.
Choose an unused Active Directory or Exchange attribute, such as 'CustomAttribute1' or 'Company', to store the domain identifier for your users.
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.
Navigate to the Exchange Admin Center, go to Recipients > Groups, select 'Add a group', and choose 'Dynamic distribution'.
In the filter settings of the new group, set the condition to match the attribute you populated (e.g., set 'CustomAttribute1' equals 'SecondaryDomain').

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. Download WPS Office: Visit the official WPS website to download the free installer for your operating system.
- 2. Install the Software: Run the setup file and follow the on-screen instructions to complete the installation.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without losing any formatting.

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.




