learn.microsoft.com Open in urlscan Pro
2600:141b:1c00:2487::3544  Public Scan

Submitted URL: https://go.microsoft.com/fwlink/?LinkId=397497
Effective URL: https://learn.microsoft.com/en-ca/exchange/troubleshoot/email-delivery/ndr/fix-error-code-5-4-6-through-5-4-20-in-exchange-o...
Submission: On August 23 via api from TR — Scanned from CA

Form analysis 3 forms found in the DOM

Name: site-header-search-form-mobileGET /en-ca/search/

<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form-mobile" data-bi-name="site-header-search-form-mobile" name="site-header-search-form-mobile" aria-label="Search" action="/en-ca/search/">
  <div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
    <div class="field-body control ">
      <input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input-mobile"
        data-test-id="site-header-search-autocomplete-input-mobile" class="autocomplete-input input 
						
						width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-1-listbox" aria-controls="ax-1-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-mobile-description"
        placeholder="Search" data-bi-name="site-header-search-autocomplete-input-mobile" pattern=".*">
      <span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
      <span hidden="" id="ms--site-header-search-autocomplete-input-mobile-description"> Suggestions will filter as you type </span>
    </div>
    <ul role="listbox" id="ax-1-listbox" data-test-id="site-header-search-autocomplete-input-mobile-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
    </ul>
    <!---->
  </div>
  <!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
  <button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
  <input name="category" hidden="" value="">
</form>

Name: site-header-search-formGET /en-ca/search/

<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form" data-bi-name="site-header-search-form" name="site-header-search-form" aria-label="Search" action="/en-ca/search/">
  <div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
    <div class="field-body control ">
      <input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input" data-test-id="site-header-search-autocomplete-input" class="autocomplete-input input input-sm
						
						width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-0-listbox" aria-controls="ax-0-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-description"
        placeholder="Search" data-bi-name="site-header-search-autocomplete-input" pattern=".*">
      <span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
      <span hidden="" id="ms--site-header-search-autocomplete-input-description"> Suggestions will filter as you type </span>
    </div>
    <ul role="listbox" id="ax-0-listbox" data-test-id="site-header-search-autocomplete-input-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
    </ul>
    <!---->
  </div>
  <!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
  <button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
  <input name="category" hidden="" value="">
</form>

javascript:

<form action="javascript:" role="search" aria-label="Search" class="margin-bottom-xxs"><label class="visually-hidden" for="ax-2">Search</label>
  <div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
    <div class="field-body control has-icons-left">
      <input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="ax-2" data-test-id="ax-2" class="autocomplete-input input input-sm
						control has-icons-left
						width-full" type="text" aria-expanded="false" aria-owns="ax-3-listbox" aria-controls="ax-3-listbox" aria-activedescendant="" aria-describedby="ms--ax-2-description" placeholder="Filter by title" pattern=".*">
      <span aria-hidden="true" class="icon is-small is-left">
        <span class="has-text-primary docon docon-filter-settings"></span>
      </span>
      <span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
      <span hidden="" id="ms--ax-2-description"> Suggestions will filter as you type </span>
    </div>
    <ul role="listbox" id="ax-3-listbox" data-test-id="ax-2-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
    </ul>
    <!---->
  </div>
</form>

Text Content

Skip to main content

We use optional cookies to improve your experience on our websites, such as
through social media connections, and to display personalized advertising based
on your online activity. If you reject optional cookies, only cookies necessary
to provide you the services will be used. You may change your selection by
clicking “Manage Cookies” at the bottom of the page. Privacy Statement
Third-Party Cookies

Accept Reject Manage cookies

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

Learn
Suggestions will filter as you type
Sign in


 * Profile
 * Settings

Sign out

Learn
   
 * Discover
      
    * Documentation
      
      In-depth articles on Microsoft developer tools and technologies
   
      
    * Training
      
      Personalized learning paths and courses
   
      
    * Credentials
      
      Globally recognized, industry-endorsed credentials
   
      
    * Q&A
      
      Technical questions and answers moderated by Microsoft
   
      
    * Code Samples
      
      Code sample library for Microsoft developer tools and technologies
   
      
    * Assessments
      
      Interactive, curated guidance and recommendations
   
      
    * Shows
      
      Thousands of hours of original programming from Microsoft experts
   
      
   
   Microsoft Learn for Organizations
   
   Boost your team's technical skills
   
   Access curated resources to upskill your team and close skills gaps.

   
 * Product documentation
      
    * ASP.NET
      
    * Azure
      
    * Dynamics 365
      
    * Microsoft 365
      
    * Microsoft Edge
      
    * Microsoft Entra
      
    * Microsoft Graph
      
    * Microsoft Intune
      
    * Microsoft Purview
      
    * Microsoft Teams
      
    * .NET
      
    * Power Apps
      
    * Power Automate
      
    * Power BI
      
    * Power Platform
      
    * PowerShell
      
    * SQL
      
    * Sysinternals
      
    * Visual Studio
      
    * Windows
      
    * Windows Server
      
   
   View all products
   
   Microsoft Learn for Organizations
   
   Boost your team's technical skills
   
   Access curated resources to upskill your team and close skills gaps.

   
 * Development languages
      
    * C++
      
    * C#
      
    * DAX
      
    * Java
      
    * OData
      
    * OpenAPI
      
    * Power Query M
      
    * VBA
      
   
   Microsoft Learn for Organizations
   
   Boost your team's technical skills
   
   Access curated resources to upskill your team and close skills gaps.

   
 * Topics
      
    * Artificial intelligence
      
    * Compliance
      
    * DevOps
      
    * Platform engineering
      
    * Security
      
   
   Microsoft Learn for Organizations
   
   Boost your team's technical skills
   
   Access curated resources to upskill your team and close skills gaps.

   

Suggestions will filter as you type
Sign in


 * Profile
 * Settings

Sign out
Microsoft 365
   
 * Solutions and architecture
     
   * Get started
     
   * Set up your infrastructure for hybrid work
     
   * Set up secure collaboration
     
   * Deploy threat protection
     
   * Data privacy and data protection
     
   * Microsoft 365 for smaller businesses and campaigns
     
   
 * Apps and services
     
   * Microsoft Teams
     
   * Microsoft 365 admin center
     
   * Microsoft 365 Apps
     
   * Microsoft Purview
     
   * Microsoft 365 security
     
   * SharePoint
     
   * OneDrive
     
   * All apps and services
     
   
 * Training
     
   * Training for IT Pros
     
   * Microsoft 365 certifications
     
   * Microsoft 365 learning pathways
     
   
 * Resources
     
   * Microsoft 365 support
     
   * FastTrack
     
   * Troubleshooting
     
   * Microsoft 365 tech community
     
   * Resources for developers
     
   
 * More
     
   * Solutions and architecture
       
     * Get started
       
     * Set up your infrastructure for hybrid work
       
     * Set up secure collaboration
       
     * Deploy threat protection
       
     * Data privacy and data protection
       
     * Microsoft 365 for smaller businesses and campaigns
       
     
   * Apps and services
       
     * Microsoft Teams
       
     * Microsoft 365 admin center
       
     * Microsoft 365 Apps
       
     * Microsoft Purview
       
     * Microsoft 365 security
       
     * SharePoint
       
     * OneDrive
       
     * All apps and services
       
     
   * Training
       
     * Training for IT Pros
       
     * Microsoft 365 certifications
       
     * Microsoft 365 learning pathways
       
     
   * Resources
       
     * Microsoft 365 support
       
     * FastTrack
       
     * Troubleshooting
       
     * Microsoft 365 tech community
       
     * Resources for developers
       
     
   

Free Account
Table of contents Exit focus mode

Search
Suggestions will filter as you type
 * Exchange Online Troubleshooting
 * Administration
 * Antispam and protection
 * Calendars
 * Development
 * Email Alias
 * Email Delivery
   * Administrative limit for this request was exceeded error
   * Automatically forward email in transport rule
   * Can't create too large transport rules
   * Can't validate an outbound connector
   * Configure Proofpoint Email Protection with Exchange Online
   * Custom messages are replaced by default system messages
   * Delivery receipts aren't generated for messages sent to external
   * Email sent to EXO deferred with ATTR35
   * Emails aren't received for a new domain
   * Errors when sending/receiving emails
   * External recipients can't get distribution group emails
   * Find and fix email delivery issues
   * How to block message send or receive
   * IMCEAEX non-delivery report
   * Important notice for Microsoft 365
   * Issues with printers, scanners, and LOB apps that send email
   * Length of the property is too long
   * Messages with attachments not delivered
   * NDR when external users send email to a Microsoft 365 group
   * Non-delivery report (NDR)
     * NDR and SMTP errors
     * 450 4.4.317 Cannot connect to remote server [Message=UntrustedRoot]
     * 451 4.7.500-699 (ASxxx)
     * 5.4.6 or 5.4.14
     * 5.7.1. Unable To Relay
     * 550 4.4.7
     * 550 5.0.350
     * 550 x-dg-ref header is too long
     * 550 5.1.0
     * 550 5.1.1 RESOLVER.ADR.ExRecipNotFound
     * 550 5.1.1 through 550 5.1.20
     * 550 5.1.8 Access denied
     * 550 5.1.10
     * 550 5.1.10 RESOLVER.ADR.RecipientNotFound
     * 550 5.1.20 Multiple From addresses
     * 550 5.2.0 RESOLVER.ADR.BadPrimary
     * 550 5.4.1
     * 550 5.6.0 APPROVAL.InvalidExpiry
     * 550 5.6.11
     * 550 5.7.1
     * 550 5.7.12 or 5.7.12
     * 550 5.7.13 or 550 5.7.135
     * 550 5.7.23
     * 550 5.7.57
     * 550 5.7.64
     * 550 5.7.64 TenantAttribution when sending emails externally
     * 550 5.7.64 TenantAttribution when sending emails through EOP
     * 550 5.7.124 or 5.7.124
     * 550 5.7.133
     * 550 5.7.134
     * 550 5.7.136
     * 550 5.7.700 through 550 5.7.750
     * 554 4.3.2 mailbox busy
     * 554 5.2.0 STOREDRV.Deliver.Exception
     * 554 5.2.2 mailbox full
     * 554 5.6.0 Invalid message content
     * AggregateGroupMailbox is full
     * Error 'the sender's submission quota was exceeded'
 * Groups and Distribution Lists
 * Mobile Devices
 * Move/Migrate Mailboxes
 * Outlook Issues
 * Outlook on the web Issues
 * Public Folders
 * Send Emails
 * User and Shared Mailboxes

Download PDF
    
 1. Learn
    
    
 2. Microsoft Exchange
    
    
 3. Troubleshooting
    

    
 1. Learn
    
    
 2. Microsoft Exchange
    
    
 3. Troubleshooting
    

Read in English Save
 * Add to Collections
 * Add to Plan

Table of contents Read in English Add to Collections Add to Plan


--------------------------------------------------------------------------------

SHARE VIA

Facebook x.com LinkedIn Email

--------------------------------------------------------------------------------

Print
Table of contents


FIX NDR ERROR 5.4.6 OR 5.4.14 IN EXCHANGE ONLINE

 * Article
 * 2024-01-24
 * 4 contributors

Feedback


IN THIS ARTICLE

    
 1. Why did I get this bounce message?
    
 2. I got this bounce message. How do I fix it?
    
 3. I'm an email admin. How do I fix this issue?
    
 4. Causes for NDR 5.4.14 and what does this error mean?
    
 5. Still need help?
    
 6. See also
    

Show 2 more

It's frustrating when you get an error after sending an email message. This
topic describes what you can do if see the error codes 5.4.6, 5.4.14 or other
error codes related to mail routing loops in a non-delivery report (also known
as an NDR, bounce message, delivery status notification, or DSN).


WHY DID I GET THIS BOUNCE MESSAGE?

The most likely cause is the message hop count being exceeded or the route
through which the message is delivered being broken. Some causes and solutions
are provided in this topic.

5.4.6 indicates a mail loop or routing problem in on-premises Exchange Server,
which you would likely encounter in a hybrid environment.

5.4.14 indicates a mail loop or routing problem in Exchange Online.

The information here applies to a range of error codes 5.4.6 through 5.4.20. Use
the information in the NDR to help you decide how to fix the problem.

Expand table

        I got this bounce message. How do I fix it? I'm an email admin. How do I
fix this issue?


I GOT THIS BOUNCE MESSAGE. HOW DO I FIX IT?

Typically, these issues can only be fixed by an Exchange Online admin and not
the average email sender. Contact your email admin and refer them to this
information so they can try to resolve the issue for you.


I'M AN EMAIL ADMIN. HOW DO I FIX THIS ISSUE?

The most common issues and fixes are described in the following sections.


ACCEPTED DOMAIN ISSUES

Verify that the recipient's domain is configured as an authoritative accepted
domain in Exchange Online. For more information, see Manage accepted domains in
Exchange Online.


HYBRID CONFIGURATION ISSUES

If your domain is part of a hybrid deployment between Exchange and Exchange
Online, check the following items based on your configuration.

YOU ROUTE ALL INCOMING MAIL FOR YOUR HYBRID DOMAIN THROUGH EXCHANGE ONLINE

This error can happen when the MX record for your hybrid domain points to
Exchange Online, and the connector that's used to route email from Exchange
Online to your on-premises Exchange organization is configured to use DNS
routing instead of smart host routing.

To fix the problem, configure a dedicated connector to be used for hybrid. This
connector will use smart host routing and will have your on-premises hybrid
server configured as a smart host. The easiest way to fix the problem is to
rerun the Hybrid Configuration Wizard in your on-premises Exchange organization.
Or, you can verify the configuration of the connector that's used for hybrid by
following these steps:

NEW EAC

 1. Open the Microsoft 365 admin center, and then click Admin centers > Exchange
    (you might need to click ...show all first). The New EAC screen appears.

 2. In the Exchange admin center (EAC), click Mail Flow > Connectors.

 3. Select the connector that's used for hybrid, and then click it.
    
    The connector properties screen appears.

 4. Under Routing, click Edit routing. The Routing screen appears.
    
    

 5. Ensure that the correct IP address or FQDN is specified for the smart host
    in your on-premises Exchange organization.

CLASSIC EAC

 1. Open the Microsoft 365 admin center, and then click Admin centers > Exchange
    (you might need to click ...show all first).

 2. Click Classic Exchange admin center on the left pane of the New EAC screen.
    
    Note
    
    You can go to the Classic EAC screen only from the New EAC screen.

 3. Click mail flow on the left pane. The mail flow home screen appears.

 4. Click the connectors tab.

 5. Select the connector that's used for hybrid, and click Edit .

 6. Go to How do you want to route email messages screen.
    
    

 7. Ensure that the correct IP address or FQDN is specified for the smart host
    in your on-premises Exchange organization.

YOU ROUTE ALL OUTGOING MAIL FROM EXCHANGE ONLINE THROUGH YOUR ON-PREMISES HYBRID
SERVER

This configuration is controlled by the value of the
RouteAllMessagesViaOnPremises parameter on the connector that's used for hybrid.
When the value of this parameter is $true, you're routing all outgoing mail from
Exchange Online through your on-premises hybrid server. You can verify this
value by replacing <Connector Name> with your value and running the following
command in Exchange Online PowerShell:

PowerShell Copy


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


In this configuration, the error is caused by either of the following issues on
the connector from your on-premises Exchange organization to Exchange Online:

 * You don't have a connector (from Office 365 to your organization's email
   server) that has the Connector Type value On-premises.
 * The connector from Office 365 to your organization's email server is scoped
   to one or more accepted domains.

To fix the problem, configure a dedicated connector (from Office 365 to your
organization's email server) that has the Connector Type value On-premises* and
that's not scoped to any accepted domains. The easiest way to fix the problem is
to rerun the Hybrid Configuration Wizard in the on-premises Exchange
organization. Or, you can verify the configuration of the connector (from Office
365 to your organization's email server) that is used for hybrid by following
these steps:

 1. Open the Microsoft 365 admin center, and then click Admin centers > Exchange
    (you might need to click ...show all first).

 2. In the EAC, click Mail Flow > Connectors.

 3. Select the connector that's used for hybrid, and then click Edit . Verify
    the following information:
    
    * General: Verify that the On-premises option is selected.
    * Scope: Verify that the Accepted domains option is empty with no data.

For more information about mail routing in hybrid deployments, see Transport
routing in Exchange hybrid deployments.


CAUSES FOR NDR 5.4.14 AND WHAT DOES THIS ERROR MEAN?

There are two likely possibilities:

 * Based on the domain in the recipient's email address, your Exchange Online
   organization accepted the message, but then couldn't correctly route the
   message to the recipient. This failure is likely caused by accepted domain
   configuration issues.
 * In hybrid environments, there are misconfigured connectors in your Exchange
   Online organization.


DETAILS ABOUT NDRS RELATED TO HOP COUNT EXCEEDED

Here are some of the error codes that are related to mail routing loops or a bad
mail routing configuration:

 * 554 5.4.6 Hop count exceeded - possible mail loop (always generated by
   on-premises Exchange Servers)
 * 5.4.14 Hop count exceeded - possible mail loop ATTR34 (always generated by
   Exchange Online)


STILL NEED HELP?








SEE ALSO

Email non-delivery reports in Exchange Online





--------------------------------------------------------------------------------


FEEDBACK

Was this page helpful?

Yes No
Provide product feedback

--------------------------------------------------------------------------------


ADDITIONAL RESOURCES





English (Canada)
California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
Theme
 * Light
 * Dark
 * High contrast

 * Manage cookies
 * Previous Versions
 * Blog
 * Contribute
 * Privacy
 * Terms of Use
 * Trademarks
 * © Microsoft 2024


ADDITIONAL RESOURCES






IN THIS ARTICLE



English (Canada)
California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
Theme
 * Light
 * Dark
 * High contrast

 * Manage cookies
 * Previous Versions
 * Blog
 * Contribute
 * Privacy
 * Terms of Use
 * Trademarks
 * © Microsoft 2024