Hybrid Mail flow not working

pavan kumar 371 Reputation points
2021-05-18T15:17:28.453+00:00

hi,

i have setup a hybrid to migrate to office 365 with centralized mail flow. But we are unable to recevie an email from office 365 mailbox to on-prem server for internal and external emails. we have opened our firewall for 25 port from anywhere over the internet and we are not seeing any traffic coming in on FW.
i am little confused with the current environment.

  1. we have a domain (abc.com - MX record) where all the external emails come in and go out.
  2. we have a owa, ews, autodiscover (owa.abc.com) for external access/URL.

From where exactly we have to open 25 - abc.com or owa.abc.com.

if we give FQDN in HCW as Abc.com then there is a email comng to on-prem exchange from office 365 for internal mailboxes, but if the email is sent to external like gmail.com or outlook.com it is failing with the error.
Error : 550 5.7.367 Remote server returned not permitted to relay -> 550 Relaying denied.

Thanks
Pavan.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,173 questions
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,345 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,884 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lucas Liu-MSFT 6,161 Reputation points
    2021-05-19T03:54:33.073+00:00

    Hi @pavan kumar ,
    Could you send email from on-premises Exchange server to external recipient normally?

    1.I noticed that the on-premses Exchange server could not receive the mail sent by O365 internally or externally initially, and then you set abc.com as the FQDN in HCW. So how do you set up HCW to run in your current environment? Please make sure that the FQDN set in your HCW is your on-premises Exchange server.

    2.About external url. According to my knowledge, external url of autodiscover only could set up in Exchange 2010, and normally it is empty by default and does not need to be set. Other External urls are usually set to https://fqdn/<service>.

    3.Please log in to Microsoft 365 admin center -> Settings -> Domains. Check if you have successfully added your on-premises Domain to Office 365.

    4.In addition to Port 25, please make sure that you opened the URL, IP and Port required by Office 365.
    Please refer to: Office 365 URLs and IP address ranges

    In addition, if possible, please share the complete NDR message with us. Pay attention to covering your personal information.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.