Outlook connecting to Office365 instead of on-premise Exchange server

GIC-AUA 16 Reputation points
2022-08-15T04:19:16.003+00:00

Hi

We have an on-premise Exchange server. The users are running Office 365 and up to a few days ago, Outlook was working fine and the users were connecting to their local Exchange mailboxes.

Now they are disconnected from their mailboxes and are getting a prompt to enter an account to reconnect to it. However, their domain account never gets accepted.

In the past if we created a new Outlook profile it would automatically find the Exchange mailbox and connect. However, now they get the prompt to enter the account to use autodiscover.xml.

231049-image.png

231038-image.png

Before this occurred, we did not change anything on the Exchange server or in the local Windows DNS Manager.

We have tried a number of troubleshooting steps but none have been successful.

We have even added to the registry path "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" the DWORD (32-bit)Value with the name ExcludeExplicitO365EndPoint and gave it the value 1.

What could be causing this behaviour?

Regards,

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,825 questions
{count} votes

10 answers

Sort by: Most helpful
  1. David Gawler 10 Reputation points
    2024-01-22T01:45:42.21+00:00

    Exchange is a rhino on heat. I get a problem where i can connect only on my local LAN IP connectivity. soon as i switch my IP to my public IP address of my router it does not connect and tries to connect to office 365 online, clearly it is a DNS issue of some sought, mail flow, autodiscover works fine on my mobile and iphone even mac clients. when it comes to windows 10, 11, it just does not connect from a public IP and tries to connect to microsoft 365 online exchange, it needs to default to microsoft exchange on premise, regardless of LAN or WAN IP address. Any ideas?

    My exchange works perfect on my mobiles, apple, samsung, OWA, macs, etc, except when i connect from a public IP anywhere then microsoft exchange does not work but i can connect using Microsoft Exchange Active Sync Client for outlook and that goes to my microsoft exchange on premise server. How to make exchange connect from anyIP with out being on the same LAN? 192.168.50.40 my windows desktop client public IP from ISP when on laptop, it fails to connect to exchange on premise and tries to connect to microsoft 365 online, i do not want this. when i switch back to my local IP LAN IP then exchange connects to my on premise server and functions normally. I guess this is fine for people in the office on the same LAN but when they are remote on their laptops then they should be able to connect just the same as if theyre on any IP across the world 4g wifi or any connection. Any one know how to fix this? Clearly it is a DNS issue with windows 2022 Server, Exchange 2019 DNS lookup addresses? As mentioned, i can connect to exchange great on the same IP. soon as i'm on another IP thats public IP on 4g then exchange bails and refuses to connect, i can connect to Microsoft Exchange ActiveSync and OWA, that works fine anywhere but why exchange client on windows dont work on any device away from the office, e.g. on 4g connection?

    1 person found this answer helpful.
    0 comments No comments

  2. GIC-AUA 16 Reputation points
    2022-08-19T13:48:04.127+00:00

    Hello Aholic Liang-MSFT

    Thanks for your assistance.

    All mailboxes are on-premises and we are not able to create new profiles because it seems as if there i a problem with the autodiscover.

    I tried the ExRCA and it does not connect to the Exchange server using autodicover.

    I tried setting both registry keys and it made no difference.

    Regards,


  3. GIC-AUA 16 Reputation points
    2022-08-22T19:33:24.98+00:00

    Hi AholicLiang-MSFT

    When I run the Microsoft Remote Connectivity Analyzer, I enter the information as follows:

    233735-image.png

    The results are as follows:

    233764-image.png

    I notice in the results, the host is returned as domain.com but I think it should be <mail_server_computer_name>.domain_name.local.

    On the internal network Outlook Web App works with domain.local but not domain.com and we need to specify the computer name of the mail server.

    233706-image.png

    I hope the information provided sheds some light on what could be causing the problem.

    Regards,

    0 comments No comments

  4. GIC-AUA 16 Reputation points
    2022-08-23T12:18:48.377+00:00

    Hi AholicLiang-MSFT

    Yes. There is an external website hosted with domain.com.

    On the client computer, I added the DWORD ExcludeHttpsRootDomain and set its value to 1.

    When I try to create the Outlook profile, I get the following pop-up:

    234312-234113-image.png

    In the server field it has the external domain and in the username it the the email address.

    I restarted the client computer just to see if it was necessary after changing the registry, but it made no difference.

    Regards,


  5. GIC-AUA 16 Reputation points
    2022-09-23T18:02:21.503+00:00

    Hi

    I'm still having issues. Did you see my last post?

    Regards,


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.