On this page
Short answer
550 5.1.8 Access denied, bad outbound sender means Exchange Online stopped one mailbox from sending after it went over a sending limit or sent mail Microsoft judged as spam. The mailbox still receives email, and admins get the User restricted from sending email alert. Check the account for compromise first. Then an admin unblocks the user on the Restricted entities page in Microsoft Defender, and sending usually resumes within an hour.
What Exchange Online stopped
- Sending
- Blocked for this one mailbox
- Receiving
- Still works
- Admin alert
- User restricted from sending email
- Unblock page
- Restricted entities, Microsoft Defender portal
- Unblock time
- Usually under one hour, at most 24
In Microsoft 365, formerly Office 365, the NDR opens with "Your message couldn't be delivered because you weren't recognized as a valid sender." and ends with "Remote Server returned 550 5.1.8 Access denied, bad outbound sender". Microsoft (page updated October 2026) explains: "This NDR is generated if a user tries to send an email message after their account exceeds the sending limits in Exchange Online."
Per the Restricted entities guide, the user "can still receive email". After an admin unblocks the account, restrictions usually lift "within one hour", 24 hours at most. Paste a full bounce into the email bounce decoder.
Why Microsoft restricts a mailbox
Three kinds of limits can lead here:
Service limits. A mailbox can send to 10,000 recipients in a 24-hour sliding window and 30 messages a minute, "hard limits" that "can't be increased" (Microsoft). Above 30 a minute, messages wait in a queue with no NDR. Above 10,000, "in some cases, the user might also appear on the Restricted entities page."
Outbound spam policy limits an admin sets: recipients per hour and per day, 0 to 10,000, where 0 means the service defaults.
The spam threshold. Accounts sending spam are blocked "when they exceed an undisclosed limit" (Outbound spam protection).
Every published limit is in Microsoft 365 sending limits.
The NDR reference names the usual cause: an account "compromised (hacked) by phishing or malware." The protection page adds that bulk email from Microsoft 365 "is permitted only on a 'best-effort' basis" and advises: "Avoid using addresses in your primary email domain ... as senders for bulk email."
Restricted entities or a policy limit: who lifts the block
A policy limit. The policy setting "Restriction placed on users who reach the message limit" has three actions (Configure outbound spam policies):
"Restrict the user from sending mail until the following day" is the default: sending resumes the next day, "based on UTC time."
"Restrict the user from sending mail" blocks the user until an admin removes them from Restricted users; after that, the user "won't be restricted again for that day."
"No action, alert only" just alerts admins.
A service limit or the spam threshold. A user listed on Restricted entities stays blocked until an admin unblocks them.
Check the action in the Microsoft Defender portal: Email & collaboration > Policies & rules > Threat policies > Anti-spam, then the outbound policy. Custom policies can cover specific users, groups or domains.
Raising policy limits won't prevent a spam-based block: Microsoft publishes no setting for that threshold.
How an admin unblocks a user restricted from sending email
- Secure the accountNew password, MFA, no unknown forwarding rules
- Check sender historyRun the Blocked Sender History diagnostic
- Open Restricted entitiesDefender: Email & collaboration > Review
- Unblock the mailboxSelect it, choose Unblock, confirm
- Fix the triggerLower volume before the mailbox sends again
Microsoft warns: "A sender exceeding the outbound email limits is an indicator of a compromised account." Per the troubleshooting page, check sign-in logs, unknown inbox or forwarding rules and recent sent items.
In Exchange Online PowerShell, Get-BlockedSenderAddress lists restricted senders and Remove-BlockedSenderAddress -SenderAddress <UPN> removes one. Removing a user takes the Organization Management or Security Administrator role group.
A mailbox that gets restricted again still has its trigger: a compromised login, the volume, the copy or the list.
5.1.8 from servers outside Microsoft
If another server sent the bounce without "bad outbound sender", read the code by the standard. The IANA registry lists X.1.8 as "Bad sender's system address". RFC 3463 adds: "For domain names, this means the address portion to the right of the '@' is invalid for mail."
A bounce like "550 5.1.8 invalid mail from domain" fits that reading. Check the MX records of the domains in your From and Return-Path with MX lookup, then run the SPF, DKIM and DMARC checker.
Free guide20 min read
Send 100,000 cold emails a month
Domains and mailboxes you need, DNS, warmup, lists, copy and follow-ups, with a launch checklist, sent to your inbox.
Who can lift each Microsoft sending block
Code | Who can lift it |
|---|---|
550 5.1.8 | An admin on Restricted entities; a default policy-limit block ends the next UTC day |
5.7.501 to 5.7.503 | Microsoft Support |
5.7.705 | Microsoft Support |
550 5.7.233 | Clears by itself as the 24-hour window rolls |
The rows follow Microsoft's NDR reference and policy docs. The tenant quota is covered in 550 5.7.233, and recipient-side blocks in Outlook blocking cold email.
Questions
What does AS(42004) mean in a 550 5.1.8 bounce?
Some bounces end with AS(42004), as in a Microsoft Q&A thread from February 2026. Microsoft's 5.1.8 page and NDR reference don't explain it, so secure the account and unblock it as usual.
What does the "User restricted from sending email" alert mean?
It's a default alert policy in Microsoft Defender that "automatically notifies admins when users are blocked from sending email." By default it goes to the TenantAdmins group. When it fires, look for the user on Restricted entities.
Why is the mailbox still blocked after I unblocked it?
Restrictions usually lift within an hour; Microsoft says "the total wait should be no longer than 24 hours." If the mailbox is back on Restricted entities, the trigger hasn't been fixed.
Can one mailbox get a higher limit than the others?
Service limits "can't be increased". A custom outbound spam policy can set different limits for specific users, groups or domains, from 0 to 10,000.
What we recommend at Outreach2day
We don't sell Microsoft 365 mailboxes. Ours are standard SMTP/IMAP on our own infrastructure, outside Microsoft 365, so Exchange Online's outbound spam policies and Restricted entities don't apply to them. Recipient filters, Outlook's included, still check every email; we measure delivery per mailbox and don't guarantee it. If outreach on your Microsoft 365 tenants keeps hitting 5.1.8, see moving cold email off Microsoft 365; our team does the move for free.
Sources
- Microsoft Learn: Fix NDR error 550 5.1.8 in Exchange Online: learn.microsoft.com/en-us/troubleshoot/exchange/email-delivery/ndr/fix-error-code-550-5-1-8
- Microsoft Learn: Remove blocked users from the Restricted entities page: learn.microsoft.com/en-us/defender-office-365/outbound-spam-restore-restricted-users
- Microsoft Learn: Configure outbound spam policies: learn.microsoft.com/en-us/defender-office-365/outbound-spam-policies-configure
- Microsoft Learn: Outbound spam protection: learn.microsoft.com/en-us/defender-office-365/outbound-spam-protection-about
- Microsoft Learn: Troubleshoot outbound sending limits and blocked users in Exchange Online: learn.microsoft.com/en-us/defender-office-365/outbound-spam-sending-limits-troubleshoot
- Microsoft Learn: Email nondelivery reports (NDRs) and SMTP errors in Exchange Online: learn.microsoft.com/en-us/troubleshoot/exchange/email-delivery/ndr/non-delivery-reports-in-exchange-online
- Microsoft Q&A: 550 5.1.8 Access denied, bad outbound sender AS(42004): learn.microsoft.com/en-us/answers/questions/5790889/diagnostic-code-smtp-550-5-1-8-access-denied-bad-o
- IANA: SMTP Enhanced Status Codes: iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
- RFC 3463: Enhanced Mail System Status Codes: rfc-editor.org/rfc/rfc3463
Related answers
- What Does 550 5.7.233 Mean, and How Do I Fix It?Bounces and errors
- Why Is Outlook Blocking or Junking My Cold Emails?Outlook and Microsoft
- What Does 535 5.7.3 Mean, and How Do I Fix It?Outlook and Microsoft
- What Does a 550 5.7.1 Bounce Mean, and How Do I Fix It?Bounces and errors
In depth on the blog
- Microsoft 365 and Outlook Sending Limits9 min read
- Microsoft 365 Cold Email After MC1454397: New-Tenant Limits8 min read

