Issue: You need to allow mail from outside senders to all or a large set of Distribution Groups using the Exchange Management Shell rather than modifying each group one by one using the GUI Exchange Admin Center or Management Console.
Solution:
Use Management Shell commands to search for any distribution groups or dynamic distribution groups that match a phrase and modify the Outside Senders setting.
Note: you will need to specify your group name you want to search for followed by a “*” wildcard in all of the example commands.
Commands to create and test a search query before modifying any settings:
Get-DistributionGroup -identity GROUPNAME*
Get-DynamicDistributionGroup -identity GROUPNAME*
Command to enable outside senders on a set of Distribution Groups:
Get-DistributionGroup -identity GROUPNAME* | Set-DistributionGroup -RequireSenderAuthenticationEnabled $False
Command to enable outside senders on a set of Dynamic Distribution Groups:
Get-DynamicDistributionGroup -identity GROUPNAME* | Set-DynamicDistributionGroup -RequireSenderAuthenticationEnabled $False
what about office 365 users?
Aside from “Identity” what are the other attributes that I can use to search my Distribution List?
This works beautifully. Thanks for sharing this!
Hi chris, i am wondering if i can choose a specific outside sender to send to a Distribution Group and block the rest to send to this Distribution Group, because the above configuration will allow anyone to send to the Distribution Group.
You may be able to do this with transport rules or the built in anti-spam and email filtering in Exchange. Please post your final solution!
This does not work. Emails still fail. When I ran the command it said “command completed successfully but no settings of distribution groups/distrogroupname have been modified.
Next setting it to $true and then re-running it as $false and testing emailing to the group from the outside continues to fail.
I would recommend checking and verifying the setting “senders inside and outside my organization” using the Exchange Admin Center GUI, then confirm the email aliases for said distribution group using the GUI and make sure you are emailing your tests to that exact distribution group email alias. I would also check your spam filter which may be sync’ing with AD and not pulling the distribution group in as an allowed recipient, since distribution groups are a different type of object from user accounts / mailboxes.
we recently migrated to office 365 so i created a group on my online portal, but i cannot send or receive emails from external recipients, get failure mail
Hi Cheslin, if you follow the steps in the article then it will make it so your distribution group can receive email from senders outside your organization (internet senders).
I have done some research and due to the current set up of the hybrid environment, and the mail flow set up, this makes sense why distribution groups would not receive external email. Once the MX records are pointing to 365 then this should work, I believe this will be updated soon.
My guy at the data centre says I can only allow mail from outside senders to all or a large set of Distribution Groups using the Exchange Management Shell when the migration is done, is this correct?
You can allow outside senders to send to a single distribution group or multiple distribution groups. As soon as mail is flowing to your Office 365 (Exchange Online), then the distribution groups will be able to receive external email. If you are running a hybrid configuration, then your Office 365 distribution groups will be able to receive external email as soon as email routing connectivity is in place between your Exchange on-premise and your office 365. For example a message would go: MX Record > Exchange On-Prem > Office 365 Distribution Group > Office 365 Distribution Group Members.
Hi Chris
thanks for the help worked, I have a problem with rules upload, client request rules quota to be increased, we increased it to 256 max, and he is still getting upload failed even thought the quota has been increased. any help or any site you can refer me to for assistance.