Blazalek.com

5.4.0SMTP 5.4.0: Other or undefined permanent routing status

A documented Locaweb response used 554 5.4.0 for a hop-limit abort. Stop unchanged retries, preserve the delivery report, and fix the routing loop before a new attempt.

Category
Network, DNS and routing
Class
Permanent failure
Retry
Do not retry unchanged
Suppression
Check the full context

TL;DR

The documented response ended delivery after too many hops. Repair routing before a new send; it does not establish recipient invalidity.

What this code means

X.4.0 is the generic other-or-undefined network-and-routing pattern. The IANA mirror confirms no class for it; this concrete class-5 page rests on exact Locaweb corpus evidence of too many hops.

Provider examples

locaweb example
554 5.4.0 Error: too many hops

Technical meaning

The accepted response is “554 5.4.0 Error: too many hops,” returned in an asynchronous DSN after DATA. It documents a hop-limit loop-protection abort for that system, not a registry-confirmed universal definition of 5.4.0.

Delivery status

The 5xx response permanently ended the recorded delivery attempt. It does not prove the address is invalid, identify every routing component, or mean a corrected route cannot accept a new attempt.

Class
Permanent failure
Retry
Do not retry unchanged
Suppression
Check the full context

Retry decision

Stop retries of the unchanged route. Consider a new submission only after a responsible administrator has confirmed that the loop or routing configuration changed.

Suppression decision

Do not suppress the recipient based on 5.4.0 alone. A routing-loop signal concerns message path handling, not recipient validity.

Common causes

  • A forwarding or routing loop exhausted the permitted hop count.
  • Configuration of a route or forwarding rule sent the message repeatedly through a path.

Diagnostic steps

  1. Retain the complete DSN, raw response, time, and message identifier.
  2. Trace Received headers and routing or forwarding logs to find the repeated path.
  3. Confirm the loop is corrected before a new submission.

Actions by owner

Sender administrator

  • Stop unchanged attempts and provide the DSN and headers to the party managing the route.
  • Submit again only after confirmation of a route change.

Recipient administrator

  • Inspect forwarding and routing rules for a loop involving the destination.
  • Correct the rule and verify a fresh path.

Provider

  • Inspect relay logs and loop detection for the recorded message.
  • Correct or report the confirmed routing condition without suppressing the recipient from 5.4.0 alone.

Sources

These sources define what this enhanced status code means, mainly through the IANA registry and related RFCs. When provider examples appear on the page, they come from that provider's published documentation. Follow the links to read the original wording in context.

Last verified:

Found an error or inaccuracy? Report a correction.

Point out the part of this page that should be checked. Every report is reviewed manually.

Type of problem

Describe the issue and, if useful, suggest corrected wording.

For a factual report, include a public source when possible.

You can submit anonymously. A reply is not guaranteed.

Do not paste full bounce messages, headers, email addresses, Message-IDs, tokens, or other personal data. Redact evidence before sending.

Sending a correction shares the information you enter with Formspree so I can review and improve this page. Read the privacy notice.

Guide

Wojtek Blazalek

Email deliverability expert

Stuck on this error code? I help teams identify rejection causes and fix authentication and reputation, so email reaches the inbox.

Hands-on deliverability work for teams that send at scale.