Fix Exchange Hybrid Email Routing Loop for Migrated Mailboxes
Question details
Users experience email routing loops and SMTP error 554 5.4.12 when sending messages from on-premises Exchange to migrated Microsoft 365 mailboxes.

- Product
- Microsoft Exchange
- Device & OS
- not provided
- Scenario
- Routing emails from on-premises Exchange to migrated Microsoft 365 mailboxes via an Edge Transport server.
- Observed behavior
- Messages loop continuously and return SMTP error 554 5.4.12. Modifying the target SMTP address to resolve this creates shared mailbox access issues.
Gather your Hybrid Configuration Wizard settings, accepted domains, target addresses, connectors, and recent message-tracking logs before beginning troubleshooting.
Consult the Microsoft Q&A Exchange Hybrid Forum
Due to the complex nature of Exchange hybrid routing and Edge Transport integrations, specialized troubleshooting from Microsoft engineers is required.
Resolving an SMTP error 554 5.4.12 in an Exchange hybrid environment involving Edge Transport servers requires detailed analysis of connectors, domains, and routing configurations to break the routing loop safely.
Collect your current Hybrid Configuration Wizard (HCW) settings, accepted domains, target SMTP addresses, and connector configurations.
Run a message tracking log on your on-premises Exchange server for the affected emails to capture the exact routing loop and 554 5.4.12 error codes.
Visit the official Exchange Hybrid Microsoft Q&A forum and create a detailed post containing your collected logs, topology, and connector details to receive dedicated assistance.

Looking for a Lightweight Alternative to Microsoft Office?
Complex Microsoft integrations like Exchange hybrid environments can be challenging to manage. If you are looking for a highly compatible, cost-effective, and user-friendly office suite for your everyday document tasks, try WPS Office.

Frequently Asked Questions
What causes SMTP error 554 5.4.12 in an Exchange hybrid environment?
This error typically indicates a mail routing loop where an email is continually bounced between the on-premises Exchange server (or Edge Transport) and Microsoft 365 without successfully reaching the final recipient mailbox. It usually stems from misconfigured send/receive connectors or incorrect target addresses.
Why does changing the target SMTP address cause shared mailbox issues?
Altering the target SMTP address can disrupt directory synchronization or the auto-mapping feature for shared mailboxes. This leads to authentication failures and prevents users with delegation rights from accessing the shared inbox.
How do I check my Exchange connector configurations?
You can review your send and receive connector settings via the Exchange admin center (EAC) under Mail flow > Connectors, or by running the Get-SendConnector and Get-ReceiveConnector cmdlets in the Exchange Management Shell.




