Exchange autodiscover redirect to O365

xhope 221 Reputation points
2020-11-02T06:49:07.487+00:00

We have on-premise Exchange server in our site and don't have O365 mailboxes.

Recently, some of our mailboxes are trying to connect to O365 which cause mailboxes disconnected and unable to create new mailbox profile on client. Meanwhile, OWA can work well.

36695-image.png

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,350 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ashok M 6,506 Reputation points
    2020-11-02T07:35:57.69+00:00

    Hi,

    Could you please provide more information,

    What is the version of your exchange server?
    Are you using M365 pro plus C2R?
    Have you deployed Exchange Hybrid?
    Any changes to the DNS?
    Is it happening for all users or some?
    Can you do outlook Test Email AutoConfiguration and check if O365 autodiscover is the first URL its trying?
    Hold Ctrl+right click on the outlook icon in system tray and click on "Test Email AutoConfiguration" and uncheck "use Guessmart" and "Secure Guessmart Authentication" and click on Test. Review the results in log tab

    You can exclude the autodiscover queries to Office365 using the registry on the affected machine and check its connecting locally using SCP while joined internally

    RegKey: ExcludeExplicitO365Endpoint
    Value: 1

    https://learn.microsoft.com/en-us/outlook/troubleshoot/profiles-and-accounts/unexpected-autodiscover-behavior
    https://support.microsoft.com/en-ae/help/3211279/outlook-2016-implementation-of-autodiscover

    If the above suggestion helps, please click on "Accept Answer" and Upvote it.


1 additional answer

Sort by: Most helpful
  1. Lydia Zhou - MSFT 2,371 Reputation points Microsoft Employee
    2020-11-03T02:50:56.623+00:00

    @RICK-0238

    What's the detailed version of your Outlook? You can check from File > Office Account > About Outlook.

    For Outlook 2016 version 16.0.6741.2017 and later versions, Outlook will attempt to retrieve Autodiscover from O365 as priority. As AshokM-8240 mentioned, you can try to use the ExcludeExplicitO365Endpoint to skip this step:

    1. Go to Register Editor and find the following location:
      HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover
    2. Create a DWORD value for ExcludeExplicitO365Endpoint and change the value to "1":
      37022-497.png

    You can check the article provided by AshokM-8240 for more details.


    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.

    1 person found this answer helpful.