How do you restrict who can email a distribution list?
In Microsoft 365, set a distribution group's delivery management to accept mail only from people inside your organization, or set RequireSenderAuthenticationEnabled to $true in PowerShell. Microsoft 365 groups use the Let people outside the organization email the group setting. In Google Workspace, set the group's Who can post access to members or your organization only.
On this page 7 sections
Company-wide addresses like all@, staff@ or everyone@ are a gift to spammers. One message to a group reaches every inbox at once, and a phishing email that appears to come through an internal list looks more trustworthy. The fix is simple: only people who should post to a list can post to it. This guide covers Microsoft 365, Google Workspace, and how to make exceptions for partners without reopening the door.
Why do distribution lists attract spam?
A list address multiplies whatever reaches it. Spam sent to a 60-person all@ list becomes 60 messages, and every recipient gets a chance to click. These addresses also leak easily: they appear in website footers, press releases, old signatures and contact lists. Our guide to protecting public email addresses from spam explains how harvesting works.
There are only a few groups that need outside mail. Most internal lists, such as all-staff, managers and department lists, never should receive it. Restrict those first.
How do you restrict a distribution list in Microsoft 365?
Exchange Online has several group types that can receive mail: distribution lists, mail-enabled security groups, dynamic distribution groups and Microsoft 365 groups. They're configured in slightly different places.
Distribution lists in the Exchange admin center
- Open the Exchange admin center and go to Recipients > Groups > Distribution list.
- Select the group and open the Settings tab.
- Under Delivery management, choose Only allow messages from people inside my organization.
- Select Save.
Microsoft describes the result plainly: "if someone outside your organization sends an email message to this group, it is rejected. This is the default setting" (Microsoft Learn). The other option, Allow messages from people inside and outside my organization, lets anyone on the internet send to the group.
Distribution lists in PowerShell
The same setting is the RequireSenderAuthenticationEnabled parameter. Microsoft defines $true as "Messages are accepted only from authenticated (internal) senders. Messages from unauthenticated (external) senders are rejected."
Find groups that accept outside mail:
Get-DistributionGroup -ResultSize Unlimited | Where-Object {$_.RequireSenderAuthenticationEnabled -eq $false} | Format-Table Name,PrimarySmtpAddress
Restrict one:
Set-DistributionGroup -Identity "All Staff" -RequireSenderAuthenticationEnabled $true
New groups created with New-DistributionGroup default to $true, but groups created years ago, migrated, or opened up for a single vendor often don't. Audit them all.
Dynamic distribution groups
Dynamic groups build their membership from rules, such as everyone in a department. They're ideal for all-staff lists because leavers drop out automatically. Microsoft says that for these groups, "By default, only people inside your organization can send messages to this group", and the Delivery management options are the same (Microsoft Learn). In PowerShell, Set-DynamicDistributionGroup takes the same RequireSenderAuthenticationEnabled parameter.
Microsoft 365 groups
Microsoft 365 groups, which also back Teams, have a single switch in the Microsoft 365 admin center:
- Go to Teams & groups > Active teams & groups.
- Select the group and open the Settings tab.
- Make sure Let people outside the organization email the group is cleared, unless the group really needs outside mail.
- Select Save.
Microsoft notes "It may take up to 30 minutes" for a change to take effect (Microsoft Learn). In PowerShell, the same setting is Set-UnifiedGroup -RequireSenderAuthenticationEnabled $true, and Get-UnifiedGroup shows the current value.
How do you restrict who can post to a Google Group?
Google Workspace controls this at two levels: an organization-wide policy and each group's own settings.
The organization-wide policy
In the Admin console, go to Menu > Apps > Google Workspace > Groups for Business > Sharing settings. The setting Group owners can allow incoming email from outside the organization is "Unchecked (not allowed)" by default (Google Workspace Admin Help). Leave it unchecked unless group owners genuinely need to open groups to outsiders. Google says changing it doesn't affect any existing external group member or message, so check existing groups separately.
Each group's access settings
As an admin:
- Go to Menu > Directory > Groups and click the group.
- Click Access settings, then Edit in the Access type section.
- Choose an access type: Public, Team, Announcement only or Restricted. Or click individual cells to customize; Google then shows the type as Custom.
- Check the Who can post row. For internal lists, make sure the External category, which Google says "includes anyone outside your organization", can't post. Check Who can contact group owners too, since it controls who "can directly email group owners".
- Click Save.
The steps are in Google's update group details page. Announcement only suits an all-staff list where only managers or owners should send.
Group owners can make the same change at groups.google.com under Group settings > General > Who can post, which Google describes as choosing "who can send messages to the group email address" (Google Groups Help).
Spam handling for groups that must stay open
For groups that need outside mail, such as a sales@ group, set Spam message handling in the posting policies. Google offers Reject all messages marked as spam, two moderation options, and Post suspicious messages to the group. Moderation only helps if someone reviews the queue.
Which lists should accept outside mail?
Sort your groups into three kinds before you change anything. It takes a few minutes and avoids breaking a list a customer relies on.
| Kind of list | Examples | External senders? |
|---|---|---|
| Internal broadcast | all@, staff@, managers@, office-uk@ | No |
| Team or project lists | finance-team@, project-x@ | No, except named partners |
| Public-facing role addresses | sales@, support@, careers@ | Yes, but consider a shared mailbox or helpdesk instead |
For the first two kinds, close the list. For the third, ask whether a group is the right tool at all. A shared mailbox or helpdesk gets one copy of each message, lets the team see who replied, and is filtered like any mailbox. A group copies every spam message to every member.
Common mistakes
- Opening a list for one vendor. Someone ticks "allow outside senders" so a supplier can reach accounts@, and forgets to undo it. Use a specific exception instead.
- Nested groups. A closed outer group can contain an inner group that accepts outside mail directly. Check both.
- Forgotten aliases. A group can have several addresses. Restricting senders covers all of them, but old aliases still show up in old signatures, so retire the ones nobody uses.
- Publishing the address. An all-staff address in a website footer or press release will be harvested. Use a role mailbox for public contact.
How do you allow partners without opening the list to everyone?
Sometimes a supplier, accountant or parent company needs to post to an internal list. Make a narrow exception, not a general one.
| Approach | Platform | How it works | Watch out for |
|---|---|---|---|
| Specified senders | Microsoft 365 | Allow inside and outside senders, then list the only senders allowed, including a mail contact for the partner | Microsoft says a mail contact is rejected "even if they're added to this list" when the group only accepts internal senders |
| Moderation | Microsoft 365 | Outside messages wait for a moderator's approval; listed senders can bypass | Someone must approve promptly |
| Mail flow rule | Microsoft 365 | Reject mail to the group when The sender > is external/internal is outside, except for the partner's domain | Rules apply tenant-wide, so name and document them |
| External members | Google Workspace | Add the partner as a group member if your admin allows external members | Members also receive every message |
Two cautions apply to every exception:
- Addresses can be forged. An exception based on a sender address is only as strong as that domain's authentication. Check that the partner publishes an enforced DMARC policy with the DMARC Checker, and keep the exception list short.
- Lists that must be public are better as mailboxes. If outsiders need a general address, point it at a shared mailbox or helpdesk and keep your internal lists closed. Our whitelisting guide explains why sender-based allows should always require authentication.
How do you check the change worked?
- From an outside account, such as a personal Gmail address, send a test message to the restricted list.
- Expect a bounce (a non-delivery report) instead of delivery. The SMTP error codes lookup can decode the code it contains.
- Send from an internal account and from any partner you allowed, and confirm both arrive.
- If outside mail still arrives, open its headers in the Email Header Analyzer. Mail that reaches the group by another route, such as forwarding from a member's mailbox or a misconfigured connector, won't be stopped by the group setting.
Next steps
- Export a list of every mail-enabled group and its external posting setting, and close every one that doesn't need outside mail.
- Replace static all-staff lists with dynamic groups on Microsoft 365 so leavers drop out automatically.
- Write down each partner exception, who asked for it and when to review it.
- Treat phishing that arrives through a group like any other. Our guide to stopping phishing in Microsoft 365 covers the wider settings, and an inbound filter such as iBlockSpam adds allow and block lists that can require sender verification.
Frequently asked questions
Can outsiders email a Microsoft 365 distribution list by default?
Not normally. Microsoft says Only allow messages from people inside my organization is the default for distribution lists created in the Exchange admin center, and New-DistributionGroup defaults RequireSenderAuthenticationEnabled to $true. Groups created long ago, synced from on-premises or changed for a vendor may differ, so check every group rather than assuming.
How do I let one partner email a distribution list but block everyone else outside?
Allow senders inside and outside the organization, then add specified senders: your internal staff group plus a mail contact for the partner. Microsoft notes that mail contacts are rejected if the group only accepts internal senders, even when listed. Alternatively, keep the group internal and use moderation or a mail flow rule with a partner exception.
Why is my all-staff email address getting spam?
Usually because the group accepts mail from outside senders and the address has been harvested from a website, a signature or a leaked contact list. Restrict the group to internal senders first. If the address must stay public, replace it with a shared mailbox or helpdesk address that's filtered like any other inbox.
Who can change the external posting setting for a Google Group?
Admins can change any group's access settings in the Admin console under Directory, then Groups. Group owners and managers can change Who can post at groups.google.com, but they can only let outsiders email the group if an admin has checked Group owners can allow incoming email from outside the organization. Google leaves that unchecked by default.
Sources
- Microsoft Learn: Create and manage distribution groups in Exchange Online
- Microsoft Learn: Set-DistributionGroup
- Microsoft Learn: Manage a group in the Microsoft 365 admin center
- Microsoft Learn: Create and manage dynamic distribution groups in Exchange Online
- Google Workspace Admin Help: Set organization-wide policies for using groups
- Google Workspace Admin Help: Update group details
- Google Groups Help: Create a group and choose group settings
See how your domain measures up
Run a free Email Health Check: MX, SPF, DKIM, DMARC and transport security in one scan, with the raw records shown. No sign-up.
Keep reading
How do you protect public email addresses like info@ from spam?
Keep info@, sales@ and careers@ addresses usable: how address harvesting works, what obfuscation can't do, safer contact forms, shared mailboxes and filtering.
9 min read Running email day to dayHow do you safely whitelist a sender in Microsoft 365 and Google Workspace?
Safely allow (whitelist) a sender in Microsoft 365 and Google Workspace without opening a spoofing hole: Tenant Allow/Block List, approved senders and gateways.
9 min read Phishing & threatsHow to stop phishing emails in Microsoft 365
Set up Microsoft 365 anti-phishing policies, impersonation protection, external sender tags and user reporting, and decide when to add an email gateway.
9 min read