Nov 21 2023 02:50 PM
Our corporate Microsoft 365 Exchange environment has users with different SMTP addresses. (e.g., @ work1.com @ work2.com etc.).
Can a Dynamic Distribution list group be created that uses a specific SMTP domain as the filter?
Thank you!
~Peter
Nov 21 2023 04:32 PM
Nov 21 2023 11:40 PM
Nov 22 2023 06:04 AM
Nov 22 2023 12:29 PM
Nov 22 2023 11:39 PM
SolutionNov 23 2023 05:46 AM
Jan 08 2024 03:26 AM
I wrote up the details of this issue because I wanted to share them with Microsoft engineering. Here's the text:
Creating Dynamic Distribution Lists Based on Email Addresses
Exchange Online recipient filters calculate the membership of dynamic distribution groups. The filters support email addresses, but they don't work. Another method is needed to create dynamic distribution lists based on user mailbox email addresses, as we describe in this article and script.
https://practical365.com/dynamic-distribution-lists-email-address/
Jan 08 2024 08:03 AM
@TonyRedmond It’s not often you ask a question online and get such a series of impressive thoughtful replies. Color me impressed - and appreciative.
Jan 08 2024 08:06 AM
Aug 05 2024 05:21 AM
2 weeks ago i implemented a custom filter for DDL following the helpfull insight you provided in your article.
I used the recipientfilter {((recipienttypedetails -eq 'usermailbox') -and ((WindowsLiveID -eq '*@domain1.com') -or (WindowsLiveID -eq '*@domain2.com') - or (WindowsLiveID -eq '*@domain3.com') -or (WindowsLiveID -eq '*@domain4.com')))}, and the DDL worked as expected, it filtered from all the mailboxes only the ones from domain1,2,3, and 4 and contains aprox 54k members.
One week later I have tried to create another group using the recipientfilter as the one mentioned above, and something very strange happens, the newly created group which has the same filter as the one that worked, doesn't contain any members.
Now I have tried searching online for any kind of possible explanation as to why the 2nd group doesn't accept the same filter and came out empty handed.
Have you ever encountered something similar?
Aug 05 2024 07:25 AM
Aug 05 2024 11:47 PM
Better yet I had the set command saved and just changed the name of the DDL while applying the same filter.
Nov 22 2023 11:39 PM
Solution