07 Jan Outlook wont find Office 365 mailbox when there is an on premise exchange server
Outlook won’t find Office 365 Mailbox when there is an on premise Exchange Server
I ran into the issue where Outlook wouldn’t find our Office 365 mailbox because there was an on premise exchange server, this happened after we performed a migration from an on-premise Exchange 2010 server to Office 365.
In case you are wondering, we did not do the hybrid scenario because I think it sucks, you can find out why on my post here
So, after migrating everything over and shutting down the Exchange server I ran into the issue that Outlook would get hijacked by active directory and autocomplete or autodiscover the user’s AD and Exchange information and not allow us to input our Office 365 mailbox credentials
The easy fix is to change the DNS server on the computer trying to connect to Office 365 to 188.8.131.52 and then change it back after it connects but we understand that this won’t always work
After much testing and googling this is how to get Outlook to connect to our Office 365 mailbox (it’s not my prettiest solution but it worked):
- I had to install the Office 2016 Group Policy template located here
- I copied the extracted ADMX and ADML files to GP store on my server 2012 (this will be dependent on your server or PC’s OS)
- I opened up Group Policy Management and created a GPO and linked it to my domain
- In the GP I went to \user\policies\admin templates\Outlook 2016\accounts settings\exchange\ and then enabled “disable auto discover‘
- Within that same GP setting, I enabled all the exclude settings
- In IIS Manager on the Exchange Server, I disabled the MSExchangeAutodiscoverAppPool and set it to not auto-start
- This last part may be the weirdest and may actually be the only thing I needed to do but it was so far down the road that I couldn’t test it as a stand-alone solution, we had to remove all existing outlook profiles and then open Outlook (not MAIL) and create a brand new profile from scratch.
- When the profile is being set up I had to choose the option to sign in with a different account, do a manual setup and then enter the O365 mailbox in the field and it finally connected
Ultimately, your best bet for having this work correctly is to remove the Exchange Server roles from your network but we understand that sometimes that is not possible.
If you are you planning an Office 365 Migration or need a top-tier O365 Consultant than look no further than your friends at LME