Whitelist external senders to a 365 group

Frequent Contributor

I generally want to block external email traffic to our 365 Groups.  However, we have some external systems producing alerts or updates that I want to deliver to a 365 Group.  That way users who are following can get those emails, or even stop following if they don't want that level of detail.  So I've enabled external sending to the 365 group, and then used an Exchange mail flow rule to control who can send emails to the group address.  The problem is that the members of that group (the subscribers) are still receiving the email.  It's as if the mail flow rule gets processed AFTER the email has already been distributed to the members.  So the rule stops the external emails from delivering to (good), but still deliver to (not good).  


Is there a way to whitelist certain external senders to a 365 Group email?  Anyone know why the mail flow rule is affecting the group email address, but not the members?  My only resolution is to have an old school distribution list to send the alerts to and control the membership manually.


Attached is how the mail flow rule is configured.  

2 Replies
best response confirmed by Eric Hepinstall (Frequent Contributor)

You can use the standard message delivery parameters:


AcceptMessagesOnlyFrom : {}
AcceptMessagesOnlyFromDLMembers : {}
AcceptMessagesOnlyFromSendersOrMembers : {}
RejectMessagesFrom : {}
RejectMessagesFromDLMembers : {}
RejectMessagesFromSendersOrMembers : {}

@Vasil Michev, I had looked at this but got caught up on the external email address (the parameter only allows you to add users).  Then it occurred to me I could create a contact with the inbound email address, and add that contact to the message delivery parameters.  That works!  Thanks for the help!   For others looking, here's Microsoft's documentation on configuring delivery restrictions:

And if using powershell, you have to use "set-unifiedgroup" commands instead of "set-mailbox", but the concept is the same.