Key takeaways
- If the rejection is a 5.1.8 "bad outbound sender" code, the sending user is restricted in a Microsoft 365 tenant, and an admin must secure and unblock that user.
- If the rejection comes from Gmail or Google Workspace, use Google's sender requirements and Postmaster Tools to bring the spam rate down.
- Do not move the domain to a new platform until you know which side is rejecting, because the same sending pattern reproduces the restriction on any platform.
This keyword describes a mixed setup: mail is sent from a Google Workspace domain, but the Microsoft 365 tenant that hosts or relays it has been flagged, or Microsoft rejects the mail as coming from a flagged sender. The two platforms enforce different rules. Microsoft restricts users and connectors inside its tenant, while Google measures sender reputation through Postmaster Tools. Identify which platform is rejecting you before you change anything.
Research checked: 2026-11-12
The short answer
If the rejection is a `5.1.8` "bad outbound sender" code, the sending user is restricted in a Microsoft 365 tenant, and an admin must secure and unblock that user. If the rejection comes from Gmail or Google Workspace, use Google's sender requirements and Postmaster Tools to bring the spam rate down. Do not move the domain to a new platform until you know which side is rejecting, because the same sending pattern reproduces the restriction on any platform.
Step 1: Decide which side is rejecting
Pull the bounce messages and read the sending server and the rejecting server in each one:
| Rejection | Likely platform | Action |
|---|---|---|
| `5.1.8`, "bad outbound sender" | Microsoft 365 tenant | Admin unblocks after securing the user |
| Gmail rejection citing authentication or spam | Fix SPF, DKIM, DMARC and complaints | |
| Blocklist named in the text | Outside list | Follow that list's removal process |
Microsoft's restricted-user text is specific. Its documentation quotes the NDR as "Your message couldn't be delivered because you weren't recognized as a valid sender," with the code `550 5.1.8 Access denied, bad outbound sender`. Source: Remove blocked users from the Restricted entities page, checked 2026-11-12.
Step 2: Fix the Microsoft side
Where the tenant is restricted, Microsoft says a user who exceeds its sending limits is restricted from sending but can still receive mail, and is listed on the Restricted entities page in the Defender portal. Before an admin removes the restriction, the account must be secured: reset the password, enable MFA, end sessions and check for forwarding rules. Microsoft suggests running the Blocked Sender History diagnostic at aka.ms/senderhistory first.
Microsoft says that under most circumstances restrictions are removed within one hour and that the total wait should be no longer than 24 hours.
Step 3: Fix the Google side
Google's sender guidelines say bulk senders must use SPF, DKIM and DMARC, with the authenticated domain matching the From domain, and that a spam rate of 0.30 percent or higher must be avoided. Source: Google email sender guidelines, checked 2026-11-12.
Check the records for the sending domain:
``` dig +short TXT example.com dig +short TXT _dmarc.example.com ```
Expect an SPF string beginning `"v=spf1"` and a DMARC string beginning `"v=DMARC1"`. If the mail is relayed through Microsoft 365 but sent as your Workspace domain, the SPF record must include every service that sends for that domain, and the DKIM key must belong to a sender that signs for it.
Add the domain to Postmaster Tools and verify it with the TXT or CNAME record Google provides. Verification can take up to 10 minutes. Then watch the spam rate daily. Source: Google Postmaster Tools help, checked 2026-11-12.
Step 4: Cut the source of the problem
Whatever triggered the restriction or the complaints, reduce it before you resume:
- Remove every bounced address the same day. Microsoft says a bounced alias is a risk and should be removed.
- Stop any campaign or import that reached people who did not opt in.
- Keep bulk mail on a dedicated subdomain. Microsoft recommends one for bulk senders, such as `m.example.com`, so a problem there does not affect staff mail on the primary domain.
- Add one-click unsubscribe to every marketing message.
Source for the Microsoft guidance: Microsoft Defender outbound spam protection, checked 2026-11-12.
Step 5: Verify
After the Microsoft unblock, send a test message from the restricted account to an address you control at Gmail and at one other provider. Check the headers for the SPF, DKIM and DMARC results. Then watch the Postmaster spam rate for at least a week before returning to full volume.
This is not legal advice. Check the rules that apply to the recipients you send to.