Outlook connecting to Office365 instead of on-premise Exchange server

GIC-AUA 51 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 | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

3 answers

Sort by: Most helpful
  1. David Gawler 25 Reputation points
    2024-02-27T09:12:32.15+00:00

    Editing regedit is really bad idea i have found. How about DNS? SSL for autodiscover and fqdn domain name for 2. you need public IP for domain name in question for fqdn.com and SSL autodiscover "A" record for autodiscover.fqdn.com with SSL. fqdn.com should have "A" record of public IP. fqdn should have SSL binded as well in IIS, DNS, exchange ECP.

    1 person found this answer helpful.
    0 comments No comments

  2. Pasquale Consalvo 5 Reputation points
    2024-08-11T14:18:03.4166667+00:00

    Microsoft has uninstalled the option to connect Outlook Desktop software to on premise Exchange Servers. There is no option to try to connect to Exchange Servers on premise.It's unavailable.

    1 person found this answer helpful.
    0 comments No comments

  3. Raphael Aubert 5 Reputation points
    2025-10-20T13:43:00.7166667+00:00

    Hello all.

    I know the topic is a bit outdated, but i've tried several things after having someone from Microsoft support (a bit unefficient - sorry but it's the truth. Letting someone dying during a migration for a customer should never happen when you contact a paid support !)

    Sitguation : Customer on OVH Exchange hosted mail, migrating one by one to Ms365.

    Once the first mailbox migrated, outlook could not open the other mailboxes on OVH. It was still redirecting to Microsoft 365 each time you select "Exchange" server type at setup in outlook.

    To change the situation, I have done the following steps :

    1 : Close outlook

    2 : Ensure you did not modify autodiscover to point on o365. If yes, rollback to OVH

    3 : Enter the registry key, and browse HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover

    Add a DWORD key named "ExcludeExplicitO365Endpoint", and set the value to 1.

    Close registry

    4 : Enter admin.exchange.microsoft.com on your Ms365 tenant, open the mailbox settings of the user you migrate, and add an SMTP mail alias pointing on the technical domain (******@tenantname.onmicrosoft.com)

    5 : On the workstation, open mail settings in control panel (to access outlook profile creation), create a new profile, and add the required OVH exchange hosted mailbox, using the manual configuration (select Exchange account type)

    Once done :

    6 : Add the Ms365 account you need by using the ALIAS in the 1st wizard window (the one with with the option "advanced options > manual configuration"), and select "Office365" account type.

    It will pop up the Ms365 OAuth window. Then authenticate with the REAL address of the Ms365 user ;)

    7 : Enjoy a coffee

    8 : Don't remove the registry value unless all the mailboxes are migrated to Ms365.

    (Never remove it if you plan to use both OVH & Ms365)

    For my case, it worked.

    And for yours ?

    Regards

    R

    1 person found this answer helpful.

Your answer

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