Skip to content
Standard SMTP codes · permanent error

5.4.6: mail routing loop

The message was passed back and forth between servers, or forwarded around a circle, until a server noticed the loop and stopped it.

Standard
Provider
Permanent (5xx)
Class
Sources checked
Author

At a glance

Code
5.4.6
Temporary or permanent
PermanentRefused for good: the message comes back to the sender, and resending it gets the same answer.
Who has to act
The recipient's side. Their mail admin has to change something; you can tell them.
What the server says
5.4.6 Routing loop detected

What it means

X.4.6 says the message was forwarded too many times, because routing tables point servers at each other or because forwarding rules send it around a circle (A forwards to B, B forwards back to A). RFC 5321 describes counting the Received header fields as an effective way to notice, with a high threshold. RFC 3463 calls the code useful only as a persistent temporary error (4.4.6), yet a loop seldom clears by itself, so in practice the stop is reported as a permanent 5.4.6 and the message is returned; Microsoft, for example, documents 554 5.4.6 from on-premises Exchange servers for a mail loop. It is a configuration problem for the domain owner, or for the mailbox owner who set up forwarding.

Common causes

  • Two mailboxes that forward to each other.
  • MX records or relay rules that send the domain's mail back to a server that already handled it.
  • A domain migration where the old and the new system each think the other is responsible.

How to fix it

  1. 01Look at the Received headers of the returned message to see which servers repeat.
  2. 02Mailbox owners: check forwarding rules and remove the one that sends mail back.
  3. 03Domain admins: check MX records and relay or smart host settings for a circle.
  4. 04Resend once the loop is fixed; the bounced copy is not retried.

Sources

What this page rests on, checked on 20 Oct 2026. The explanation is ours; the reply text is the server's.

  1. 5.2.4Mailing list could not be expanded.The address is a mailing list, and the server could not turn it into the list of member addresses, so the message did not go out to the list.StandardPermanent
  2. 5.3.5Receiving system misconfigured.The receiving system's own configuration does not allow it to accept this message, a problem only its administrator can fix.StandardPermanent

5.4.6 at other providers

  1. 554 5.4.6Mail loop detected.The message passed through more than 50 mail servers on its way, which usually means it is stuck in a loop, so Gmail stopped it.GmailPermanent

Further reading

All 105 standard codesEvery code in the wikiPaste your own bounce

Beat · paid monitoring

A heartbeat for your email.

Beat runs every check on this site on a schedule: 41 checks, 33 blacklists and real inbox placement. The moment something breaks, it tells you what broke, why it matters, and the exact fix.

example.comWatching
  • SPFpass
  • DKIMpass
  • DMARCp=none
  • Blacklists0 of 33

Illustrative. Your domain, every few hours.

Also from us:Pulse: your own sending infrastructureConsulting: $65/hr, no retainer