Key takeaways
- Secure the restricted account, find out why it was restricted, remove the restriction through the Restricted entities page once you have confirmed the account is safe, and reduce the sending pattern that triggered it.
- Microsoft says that under most circumstances restrictions are removed within one hour, and that the total wait should be no longer than 24 hours, so if a block persists beyond that, check the account state again rather…
- Open the Microsoft Defender portal at security.microsoft.com, go to Email & collaboration, then Review, then Restricted entities.
When Microsoft flags a Microsoft 365 tenant for spam, the usual sign is that one or more users cannot send, and their mail returns a non-delivery report with code `5.1.8` and the text "bad outbound sender." Microsoft's documentation says that a user who exceeds its outbound sending limits or outbound spam policy limits is restricted from sending, can still receive mail, and is added to the Restricted entities page. Microsoft describes this as an indicator of a possible account compromise, so recovery starts with the account, not with the tenant.
Research checked: 2026-11-12
The short answer
Secure the restricted account, find out why it was restricted, remove the restriction through the Restricted entities page once you have confirmed the account is safe, and reduce the sending pattern that triggered it. Microsoft says that under most circumstances restrictions are removed within one hour, and that the total wait should be no longer than 24 hours, so if a block persists beyond that, check the account state again rather than repeating requests.
Step 1: Confirm the restriction
Open the Microsoft Defender portal at security.microsoft.com, go to Email & collaboration, then Review, then Restricted entities. You can go directly to security.microsoft.com/restrictedentities. The entity type for a user account is Mailbox. In PowerShell, `Get-BlockedSenderAddress` lists restricted senders, and `Get-BlockedSenderAddress -SenderAddress user@example.com | Format-List` shows one. Use the user principal name for a hosted mailbox.
Restricted entities can be user accounts or connectors. This article covers user accounts. For connectors, Microsoft has a separate article on removing blocked connectors.
Step 2: Secure the account
Microsoft says a sender exceeding these limits is an indicator of a compromised account, and that you must follow its steps for responding to a compromised email account before removing the restriction. In practice:
- Reset the password and enable multi-factor authentication for the user.
- End active sessions and revoke any app consent you do not recognise.
- Check the mailbox for forwarding rules and inbox rules the user did not create.
- Review sent items for messages to addresses the user has never contacted.
Microsoft's unblock flow asks you to confirm these steps and links to enabling MFA and resetting the password. Do not skip them, because a restriction removed on a still-compromised account returns quickly.
Step 3: Run the diagnostic
Before unblocking, Microsoft recommends running the Blocked Sender History self-help diagnostic at aka.ms/senderhistory. It shows listing and delisting history and the sender's MFA status, which tells you whether the restriction is recent and whether the account has MFA on. Keep a copy of the result with your incident notes.
Step 4: Unblock the user
In the Restricted entities page, select the user, choose Unblock, read the overview, confirm the account is secured, and submit. Microsoft says that under most circumstances all restrictions are removed within one hour, and that the total wait should be no more than 24 hours, though transient issues can cause a longer wait. Source: Remove blocked users from the Restricted entities page, checked 2026-11-12.
To do it in PowerShell, use `Remove-BlockedSenderAddress -SenderAddress user@example.com` after confirming the account is secure.
Step 5: Prevent a repeat
Microsoft's outbound spam documentation gives the reasons a tenant gets flagged and the controls it uses:
- Messages judged spam are sent from a less reputable IP pool, and accounts exceeding undisclosed limits are blocked.
- Microsoft does not publish the exact limits, so plan around sustainable volume, not a number.
- Microsoft recommends a custom subdomain for bulk email, such as `m.example.com`, and advises against sending bulk mail from primary-domain addresses.
- Remove every bounced address, and add one-click unsubscribe to marketing messages.
Source: Microsoft Defender outbound spam protection, checked 2026-11-12.
Also confirm that authentication is in place for every sending domain. Replace `example.com` and check:
``` 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"`.
Step 6: Watch the alerts
Microsoft's default alert policy, "User restricted from sending email," notifies members of the TenantAdmins group, which Microsoft lists as Global Administrator members, when a user is restricted. For alerts to work, audit logging must be on, which Microsoft says is the default. Review who receives these alerts and set a daily notification limit that suits your team.
This is not legal advice. For recipients in other countries, check the rules that apply to them.