Join our Newsletter — 33% off our NHI Course
Home› Guides› Exchange Online Ban NDRs 5.7.705, 5.7.708 and 5.7.511:…
Guide Email & Communications Security

Exchange Online Ban NDRs 5.7.705, 5.7.708 and 5.7.511: Compromise Signals

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

When Exchange Online rejects outbound mail with 5.7.705, 5.7.708 or 5.7.511, the block is usually aimed at a whole tenant or a sending IP address, not one user, and the most common reason is that something in your mail path has been sending spam. These codes are rarer than the everyday 5.1.8 restricted sender bounce, and they are easy to misread as a Microsoft fault or a licensing glitch. This guide explains what each code means according to Microsoft's documentation, which of them point towards a compromised account, connector or on-premises server, how to investigate before asking for the block to be lifted, and how to set outbound spam policy so the next problem is caught at user level first. It is written for Microsoft 365 administrators, messaging engineers and email security analysts. General Exchange Online hardening is covered in the Exchange Online Security Guide; this page is the incident companion for these three bounces.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • 5.7.705 is a tenant-wide ban. Microsoft describes it as most of the traffic from the tenant being detected as suspicious, so the tenant's ability to send is blocked for everyone.
  • 5.7.708 is about the sending IP. Microsoft links it to a low-reputation source address, most often seen in new or trial tenants, and it shares the same remediation row as 5.7.705.
  • 5.7.511 means a banned sending IP. It applies to the address you send from towards Microsoft 365, typically an on-premises server, hybrid host or third-party relay, and it has its own delisting route outside the self-service portal.
  • Treat the bounce as an incident first. Microsoft's guidance is to resolve compromises and open relays before contacting support; lifting a block while the cause is still live invites a repeat.
  • Outbound spam policy is the early warning. Tight per-user limits and the default alert policies catch a single compromised mailbox long before the tenant reaches the 5.7.705 threshold.

What these NDRs mean

A non-delivery report (NDR) carries an enhanced status code in the form 5.y.z, defined in RFC 3463. The leading 5 marks a permanent failure, and a subject of 7 means a security or policy decision rather than a routing or mailbox fault. Microsoft's NDR format puts the code, the generating server and the SMTP response under "Diagnostic information for administrators", which is the part to copy into a ticket or incident record.

The three codes on this page sit at a different level from the user-level restriction most administrators know. The table summarises Microsoft's documented meaning and the first action for each, with 5.1.8 and 5.7.750 included because they are often seen alongside them.

Code and SMTP textScope of the blockMeaning per MicrosoftFirst action
5.1.8 Access denied, bad outbound senderOne mailboxThe account was blocked for sending too much spam, typically because it was compromisedSecure the account, then remove it from Restricted entities
5.7.705 Access denied, tenant has exceeded thresholdWhole tenantMost traffic from the tenant was detected as suspicious, so the tenant's sending is bannedHunt for compromised accounts, connectors and relays; then contact Microsoft Support
5.7.708 Access denied, traffic not accepted from this IPSending IPMail came from an IP address with low reputation; more likely for new customers such as trial tenantsConfirm the source IP is yours and clean; request an IP exception from support if in trial
5.7.511 Access denied, banned senderSending IPThe IP you are sending from was bannedFix the source of abuse, then use the delisting route quoted in the NDR
5.7.750 Client blocked from sending from unregistered domainTenantA suspicious volume of mail from domains not provisioned in the tenantValidate accepted domains and review connectors

The user-level 5.1.8 path, sending limits and blocklist recovery in general are covered in the Outbound Email Abuse guide. This page goes deeper on the tenant and IP bans.

5.7.705: tenant blocked

Microsoft's troubleshooting article states that 5.7.705 appears when Exchange Online blocks outgoing mail because the organisation sent too much spam or bulk mail. Only an email administrator can resolve it, and every user in the tenant is affected, which makes it one of the most disruptive mail incidents a Microsoft 365 customer can have.

Microsoft lists these causes:

  • Compromised on-premises server: an on-premises mail server that routes mail through Exchange Online has been taken over and is relaying spam through the tenant's connectors.
  • Compromised admin account: an attacker with an administrative account creates connectors and uses them to push spam through the service.
  • Subscription renewal: less commonly, an Exchange Online subscription that expired and was renewed can be blocked from sending during renewal, typically for no longer than a day.

The first two are compromise signals by definition. A tenant does not reach this threshold through one hijacked mailbox when per-user limits are working, because that mailbox is restricted first with 5.1.8. A 5.7.705 therefore usually means mail is entering the service through a path the user-level controls do not see, such as an inbound connector from an unknown IP range, an on-premises relay that accepts mail from anywhere, or many accounts being abused at once.

Microsoft's remediation links point to responding to a compromised email account, setting up multifactor authentication, configuring the tenant for increased security and Microsoft Secure Score. After the cause is fixed, the administrator contacts Microsoft Support through the normal channel to have the block removed.

5.7.708: IP not trusted

5.7.708 tells you the message was sent from an IP address with a low reputation. Microsoft notes that it is more likely for new customers, for example during a Microsoft 365 trial, and that a trial tenant can ask Microsoft Support for an IP address exception until Exchange Online licences are assigned.

The NDR reference page groups 5.7.708 with 5.7.705 and gives the same fix: make sure any compromise or open relay is resolved, then contact support. In practice, split the investigation in two:

  1. New or trial tenant with low volume: the likely cause is reputation, not abuse. Confirm licences are assigned, check that accepted domains are validated, and raise the exception request.
  2. Established tenant or high volume: treat it as a compromise signal. Identify the IP in the NDR, confirm whether it belongs to your on-premises estate, a hybrid server, a scanner or an application relay, and check that host and any connector that trusts it.

An unfamiliar IP address in a 5.7.708 is itself a finding: it means mail claiming to be from your tenant is arriving from a source you do not recognise.

5.7.511: banned sender

Microsoft defines 5.7.511 as "Access denied, banned sender": the IP address the mail is coming from has been banned. It is aimed at the sending infrastructure that delivers to Microsoft 365, so for a Microsoft 365 customer it most often shows up when an on-premises server, a hybrid host, a marketing platform or another relay you operate sends to Microsoft 365 recipients.

Microsoft separates it from the 5.7.606 to 5.7.649 "banned sending IP" range. Those codes use the self-service Anti-Spam IP Delist Portal at sender.office.com. A 5.7.511 cannot be cleared through the portal: Microsoft's instructions are to forward the NDR, including the full code and IP address, to the delisting address quoted in the bounce text, and Microsoft says it will reply with next steps within 48 hours.

An IP ban of this kind follows abusive traffic. Before you ask for removal, establish what the host sent. Microsoft warns that a delisted IP can be blocked again if the messages remain abusive, and delivery after delisting still depends on passing its authentication and filtering checks.

Investigating possible compromise

Use the code to choose where to look first, then work through every path, because attackers often use more than one. Microsoft's compromised account guidance stresses that each step matters, since the attacker may have set up persistence.

Where to lookWhat to checkMost relevant to
Connectors (Exchange admin centre, Mail flow, Connectors)Inbound connectors you did not create, IP ranges or certificate domains you do not own, recent creation or change dates in the audit log5.7.705, 5.7.750
On-premises and hybrid mail serversOpen relay settings, receive connectors accepting anonymous relay, queue size, malware on the host5.7.705, 5.7.708, 5.7.511
Admin roles (Entra roles, Exchange role groups, Defender permissions)New role assignments, unexpected Exchange Administrator or Global Administrator holders, sign-ins from unfamiliar locations5.7.705
Restricted entities and alerts (Defender portal)Users already restricted, "Suspicious email sending patterns detected" and "Email sending limit exceeded" alerts in the days before the banAll
Message traceTop senders and source IPs in the window before the block, sudden volume to external recipientsAll
Mailbox persistenceInbox rules including hidden ones (Get-InboxRule -IncludeHidden), ForwardingSmtpAddress, added delegates5.7.705
Sign-in and audit logsPassword spraying patterns, legacy protocol sign-ins, consent grants to unfamiliar applications5.7.705

The techniques behind these findings map to MITRE ATT&CK: T1078.004 Cloud Accounts for the hijacked identity, T1110.003 Password Spraying as a common way in, T1114.003 Email Forwarding Rule and T1564.008 Email Hiding Rules for mailbox persistence, and T1098.002 Additional Email Delegate Permissions. For techniques to find spraying in the sign-in logs see How to detect password spraying in Entra ID sign-in logs with KQL.

Where identity fits: the senders behind these bans are frequently not people. Application mailboxes, scanner accounts, SMTP relay identities and connectors that trust an IP range are machine paths that rarely have an owner watching them. Include them in the hunt, and see How to review Microsoft 365 app registrations with mail permissions for applications that can send as users.

If the evidence shows a wider breach, such as new admin accounts or federation changes, move to the Microsoft 365 Tenant Compromise Playbook rather than treating it as a mail problem.

Remediation and delisting

Work in this order. Removing the block early is the most common way the ban returns within days.

  1. Contain: disable or reset compromised accounts (for accounts synced from Active Directory, Microsoft advises resetting the password twice), revoke sessions with Revoke-MgUserSignInSession, remove unknown MFA methods and have users replace app passwords, which a password reset does not revoke.
  2. Close the path: delete or disable unauthorised connectors, close open relays on on-premises servers, remove unexpected admin role assignments, and turn off external auto-forwarding where it is not needed.
  3. Clean mailboxes: remove malicious inbox rules, forwarding and delegates found during investigation.
  4. Record evidence: export message trace results, audit log entries for connector and role changes, and the full NDR text before you change anything else.
  5. Request removal by code: for 5.7.705 and 5.7.708 contact Microsoft Support through your normal channel and state what was compromised and what you fixed. For 5.7.511 follow the delisting instruction in the NDR. For 5.7.606 to 5.7.649 use the delist portal (one email address and one IP per visit; removal can take up to 24 hours or longer).
  6. Clear user restrictions last: remove users from Restricted entities in the Defender portal or with Remove-BlockedSenderAddress only after their accounts are secured. Microsoft's Blocked Sender History diagnostic at aka.ms/senderhistory shows listing history and the sender's MFA status.
  7. Watch for recurrence: monitor message trace and the outbound alerts daily for at least two weeks.

Outbound spam policy settings that prevent the tenant ban

The default policy, "Anti-spam outbound policy (Default)", is always on and applies to every sender. Custom policies let you set tighter limits for groups. Values run from 0 to 10,000, where 0 means the service default.

SettingPowerShell parameterSuggested approach
External message limit per hourRecipientLimitExternalPerHourSet close to real peak usage for most staff; keep higher limits in a separate policy for roles that need them
Internal message limit per hourRecipientLimitInternalPerHourLimit to catch internal phishing waves from a hijacked mailbox
Daily message limitRecipientLimitPerDaySet per group, based on message trace baselines
Restriction when a limit is reachedActionWhenThresholdReached"Restrict the user from sending mail" keeps the user blocked until an administrator reviews; the default restricts until the following day (UTC)
Automatic forwarding rulesPolicy forwarding settingChoose "Off" or "On" explicitly rather than "Automatic - System-controlled", as Microsoft recommends

Confirm the three default alert policies are routed to a monitored mailbox or SOC queue: Email sending limit exceeded, Suspicious email sending patterns detected and User restricted from sending email. By default they go to TenantAdmins. The older "Notify these users and groups if a sender is blocked" setting is being deprecated in favour of the alert policy.

Detection and measurement

  • Restricted users per month: each one is a probable compromise; a rising count means credential controls need attention.
  • Time from first outbound alert to containment: the gap during which a tenant can drift towards the 5.7.705 threshold.
  • Connectors reviewed: percentage of inbound connectors with a named owner and a review in the last quarter.
  • Accounts on custom outbound policies: share of senders under limits tighter than the service default.
  • Tenant or IP ban incidents: target zero; any occurrence should trigger a root cause review.

Framework mapping

FrameworkReferenceHow it applies
NIST SP 800-53 Rev. 5SI-8 Spam ProtectionOutbound spam policy limits and alerting
NIST SP 800-53 Rev. 5AC-2 Account ManagementOwners and review for connector, relay and application mailbox identities
NIST SP 800-53 Rev. 5IR-4 Incident HandlingTreating a ban NDR as an incident with containment before delisting
NIST CSF 2.0DE.CM-01, RS.MI-01Monitoring mail flow for adverse events; containing the abusing account or host
MITRE ATT&CKT1078.004, T1110.003, T1114.003, T1564.008, T1098.002Account takeover and mailbox persistence behind outbound abuse

Common failure patterns

  • Asking support to lift the ban before hunting: the connector or relay is still live and the tenant is banned again.
  • Looking only at user mailboxes: 5.7.705 often comes from a connector or on-premises server, which the user-level checks miss.
  • Leaving outbound limits at the service default: a hijacked account can send at full volume before it is restricted.
  • Alerts going to an unread mailbox: the default alert recipients are Global Administrators, who may not watch for them daily.
  • Using the delist portal for 5.7.511: Microsoft states the portal does not handle this code, so requests stall.

Practitioner checklist

  • Record the full NDR, including the code, generating server and source IP, in an incident ticket.
  • List every inbound and outbound connector, its owner and its trusted IPs or certificate domain; remove any you cannot explain.
  • Check on-premises and hybrid servers for open relay and unusual queue volume.
  • Review admin role assignments and connector changes in the audit log for the last 30 days.
  • Secure every affected account (disable or reset, revoke sessions, review MFA methods, replace app passwords) before unblocking.
  • Remove malicious inbox rules, forwarding and delegates.
  • Use the delisting route that matches the code: support for 5.7.705 and 5.7.708, the NDR instruction for 5.7.511, the portal for 5.7.606 to 5.7.649.
  • Create custom outbound spam policies with limits based on real usage and set the forwarding option explicitly.
  • Route the three outbound alert policies to a monitored queue.

Standards and references

Related NHI Mgmt Group resources: Exchange Online Security Guide · Outbound Email Abuse · Microsoft 365 Tenant Compromise Playbook · Exchange Online 5.7.57 · Microsoft Defender for Office 365 Configuration Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.