Forum Discussion
Allow only specific domain to email a distribution group
- Apr 27, 2024
I figured out a way. Using a mail flow rule where the header contains "To" of the distribution group. And have it block those messages, and an exception of the domains to allow.
VasilMichev , thanks for the clue.
- JeffRyerApr 25, 2024Brass Contributor
VasilMichev - I already tried a mail-flow rule and it didn't work; and then I found the reason why:
"Note - If the Mail flow rule is configured to check for the recipient where the recipient is a distribution group, the rule won't be matched. When the message is sent to a distribution group, the group will be resolved to distinct users of that group before reaching Mail flow rules and instead, will check every member of a group."
From <https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/conditions-and-exceptions>
- VasilMichevApr 25, 2024MVPAnd I'm telling you that it depends on the condition used. The note you quoted applies to specific conditions only.
- JeffRyerApr 27, 2024Brass Contributor
I figured out a way. Using a mail flow rule where the header contains "To" of the distribution group. And have it block those messages, and an exception of the domains to allow.
VasilMichev , thanks for the clue.