Exchange Online mail delivery (NDR)

Exchange Online NDR 5.4.14: hop count exceeded, possible mail loop

NDR 5.4.14 (and 554 5.4.6) means a mail loop or broken route. Check the accepted domain and hybrid connectors, or rerun the Hybrid Configuration Wizard.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

5.4.14 is a routing loop bounce. Microsoft's article says the most likely cause is that the message hop count was exceeded or that the route the message takes is broken. Microsoft separates two closely related codes: 5.4.6 indicates a mail loop or routing problem in on-premises Exchange Server, which you would likely see in a hybrid environment, and 5.4.14 indicates a mail loop or routing problem in Exchange Online. The same guidance covers the range 5.4.6 through 5.4.20.

The NDR reference table lists both codes as "Routing loop detected" and notes that, by default, Exchange interrupts an email loop after 20 iterations and sends an NDR to the sender. Microsoft gives the diagnostic texts as "554 5.4.6 Hop count exceeded - possible mail loop" and "5.4.14 Hop count exceeded - possible mail loop ATTR34."

Common causes

Microsoft names two likely possibilities for 5.4.14:

  • Exchange Online accepted the message for the recipient's domain but could not route it correctly, usually because of the accepted domain configuration.
  • In a hybrid environment, connectors in Exchange Online are misconfigured. Two documented cases: the MX record points to Exchange Online but the connector to on-premises uses DNS routing instead of smart host routing; or all outbound mail goes through on premises (RouteAllMessagesViaOnPremises is true) but the connector from on premises is not of type On-premises or is scoped to accepted domains.

How to fix it

1. Users: send the NDR to your admin

Microsoft says these issues can typically be fixed only by an Exchange Online admin. Forward the complete NDR, including the diagnostic section.

2. Admins: check the accepted domain

In the Exchange admin center, go to Mail flow, Accepted domains and verify that the recipient's domain is configured as an authoritative accepted domain in Exchange Online, as Microsoft's article directs.

3. Admins: fix the hybrid inbound connector routing

If the MX record for the hybrid domain points to Exchange Online, open Mail flow, Connectors, select the connector used for hybrid and choose Edit routing. It must use smart host routing with the correct IP address or FQDN of the on-premises hybrid server, not DNS routing. The simplest fix is to rerun the Hybrid Configuration Wizard on premises.

4. Admins: check centralized mail transport

If all outgoing mail is routed through on premises, confirm the setting in Exchange Online PowerShell:

Get-OutboundConnector -Identity "<Connector Name>" | Format-List Name,RouteAllMessagesViaOnPremises

When it is True, the connector from your organization's email server to Exchange Online must have the On-premises connector type and an empty accepted domains scope. Correct it in Mail flow, Connectors, or rerun the Hybrid Configuration Wizard.

If nothing works

Collect the full NDR and the message trace for an affected message, and compare the hops with your connector configuration. Microsoft's Transport routing in Exchange hybrid deployments article describes the expected paths. The Exchange Online connectors guide explains connector types and scoping, and the Hybrid Configuration Wizard errors guide helps if the wizard itself fails.

What we checked

Two Microsoft Learn pages were read on 2026-11-21. Microsoft's article Fix NDR error 5.4.6 or 5.4.14 in Exchange Online explains the difference between 5.4.6 and 5.4.14, the accepted domain check, the two hybrid connector scenarios with their fixes, and the hop count diagnostic texts. The Exchange Online NDR reference table lists the codes as a routing loop and gives the 20-iteration limit. A separate page for 5.4.6 was not written because Microsoft covers both codes with the same guidance. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does 5.4.14 hop count exceeded mean?

Microsoft says 5.4.14 indicates a mail loop or routing problem in Exchange Online. The message bounced between systems until the hop limit was reached.

What is the difference between 5.4.6 and 5.4.14?

Microsoft says 5.4.6 indicates a loop or routing problem in on-premises Exchange Server, usually seen in hybrid environments, while 5.4.14 indicates the problem is in Exchange Online. The same guidance covers 5.4.6 through 5.4.20.

Can a user fix a routing loop?

No. Microsoft says these issues can typically be fixed only by an Exchange Online admin, so forward the NDR to IT.

Guides that mention 5.4.14

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.