554 5.4.14 Hop count exceeded - possible mail loop ATTR34

Mountain Pond 1,411 Reputation points
2022-11-20T10:28:16.4+00:00

Hello, I wanted to ask you how I should configure mail routing.

The organization is currently operating in a hybrid scenario. All messages are sent and delivered through Barracuda.
But we're finalizing the migration and want to switch all mail afterwards to o365 instead of On-Prem.
Now this is the scheme.
262127-chrome-joisqccur9.png

o365 currently has two connectors for the Barracuda. If we switch mail flow from Barracuda to o365. Users in On-Prem cannot receive messages with error: 554 5.4.14 Hop count exceeded - possible mail loop ATTR34
It turns out such a scheme.
262206-chrome-wbvnzrpnuc.png

Am I correct in understanding how to avoid this problem? I should create two other connectors instead of the incoming connector. So that all messages coming to domain.com (which is the accepted domain for the Exchange organization) are delivered to On-Prem. In this case, On-Prem receives or will be able to receive messages. And if the user is in O365, then his messages will be redirected back through on-prem to o365 using the technical address. To do this, a second connector is created that sends all messages to domain.onmicrosoft.com to o365.
262212-chrome-kjzoomftfu.png

Thank you.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,481 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,985 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joy Zhang-MSFT 1,046 Reputation points
    2022-11-21T02:18:26.537+00:00

    Hi @Mountain Pond ,

    Based on your description, I want to confirm if you want your mail routing flow in below scenario: Internet mails - Barracuda -O365 -On-prem? Please correct me if I misunderstand your issue.

    As far as I know, if you want to internet mails flow to O365 first, you should disable centralized mail transport. Detailed information on routing incoming Internet messages through the Exchange Online organization for your reference.

    In addition, please refer to a blog on How to Configure Microsoft 365 for Inbound and Outbound Mail, and it indicates that you only need create one send connector to configure outbound mails. In the blog, it also mentions that each of your domains from which you want to be able to send email must be added to the Barracuda Email Security Gateway. Be sure to add all of your accepted Microsoft 365 domains to the Barracuda Email Security Gateway before configuring outgoing email in this section.
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    If an Answer is helpful, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.