exchange-online error

Exchange 554 5.4.6 — Hop Count Exceeded, Possible Mail Loop

The message passed through more hops than allowed and was discarded as a probable loop; the on-premises Exchange counterpart of 5.4.14.

What the bounce says

Exact wording as it appears in the rejection or NDR. Placeholders such as x.x.x.x and example.com stand for your own address and domain.

554 5.4.6 Hop count exceeded - possible mail loop

554 5.4.14 Hop count exceeded - possible mail loop ATTR34

A message that keeps travelling without arriving is going in a circle. Exchange counts the Received headers and stops the message when the count exceeds the limit. The loop is almost always two systems configured to hand mail to each other.

Reviewed 2026-09-08. Provider wording and requirements change; the provider reference below is authoritative.

Most common causes

  • Two servers or connectors route the same domain to each other
  • A mailbox forward targets an address that forwards back
  • A transport rule redirects into a path already taken
  • A smart host relays to a server that relays back

What to verify next

  1. Trace the Received chain for repeating hosts
  2. Compare routing on both sides of a hybrid deployment
  3. Remove circular forwarding and fix the connector target
  4. Resend a test after breaking the loop

Read the route

Each hop adds a Received line. In a loop the same two or three hosts alternate down the header. The route visualizer orders the chain and highlights repeats, which identifies the pair immediately.

On-premises Exchange reports 5.4.6; Exchange Online reports 5.4.14 with an ATTR34 tag. Both mean the same thing.

  • Repeating hosts in Received identify the loop.
  • Look at routing changes made recently.
  • 5.4.6 on-premises, 5.4.14 in Exchange Online.

Usual configurations

Hybrid: both sides think the other is authoritative for a domain. Send connectors on-premises pointing at the cloud while the cloud connector routes back. Forwarding: mailbox A forwards to B which forwards to A. Smart hosts: an appliance relays to Exchange which relays back to the appliance.

Almost every loop appears within a day of a routing change; compare the change against the repeating hosts.

Fix and flush

Correct the authoritative side, remove the circular forward, or fix the connector target. Then clear the queues — looping messages multiply quickly — and send one test message, tracing its route to confirm it terminates.

Best diagnostic path

Known limits

  • Hosts in Received are self-reported; a badly configured relay may not name itself clearly.
  • Loops involving external forwarders need cooperation from that party.

Common questions

Can DNS cause a loop?

Yes, if MX or a smart-host record points at a system that relays back. Usually it is connector or forwarding configuration.

How many hops are allowed?

Exchange’s default limit is 30 for on-premises; Exchange Online uses its own limit. Normal delivery uses far fewer.

Is mail lost?

The looping messages are discarded with the NDR. Resend after fixing the loop.

Why the exact message matters

The same status family can be triggered by different conditions, and providers frequently add diagnostic text that narrows the issue. Use the complete rejection text rather than treating the numeric code as a complete diagnosis.

Provider reference

For the provider-defined meaning and current requirements, review Microsoft: Fix error codes 5.4.6 through 5.4.20.