Having gone through the pain twice now (you’d think I’d learn the first time) I’m going to punch out a quick blog post for future.
The Scenario
My development machine is in our corporate domain (corpdomain.com) and I’m doing development against Exchange 2013. I’ve setup an isolated domain with it’s own Active Directory server and Exchange server (let’s call it devdomain.com). I need to be able to connect my Outlook 2013 client on my development machine (in corpdomain.com) to the Exchange 2013 server in a different environment (devdomain.com). Since I’m just doing some isolated dev I don’t want to be creating entries in our corporate DNS or AD.
In my case I’ve already established TCP connectivity between corpdomain.com and devdomain.com (i.e. I can ping between them).
The Frustration
Try as I might I just cannot manually setup a connection to the Exchange 2013 server. Outlook just keeps telling me it cannot establish connectivity to the Exchange server or the user account cannot be found (this is through both starting Outlook without a profile or Control Panel>Mail to create a new profile).
The Answer (for me anyway)
The only way I can get it to work is to go through the Exchange autodiscover process, and to make this happen I add an entry for autodiscover.devdomain.com into the hosts file on the development machine and point it to the IP address of the Exchange 2013 server.
Here’s the steps to perform on the Outlook client machine:
Close Outlook
Now delete all profiles (through Control Panel>Mail>Profiles) then start Outlook.
Edit your hosts file (you need to have Admin rights to save changes) and add an entry for the autodiscover to work
Now start Outlook and you should get the account setup wizard
Give your profile a name
Enter the Email address as name@devdomain.com and password
All going well I get a prompt regarding a security certificate
Click view Certificate… and Install Certificate (then just keep accepting defaults)
Finally you get back to the original dialog above and click Yes
All going well you now get a successful connection and can start Outlook connected to your Exchange 2013 server in another domain.
All is now good to go. I can debug my Outlook 2013 addin connected to an Exchange 2013 server in a different domain.
I’ll stress that this solution is a quick and dirty approach suitable only in a temporary development scenario. I would not suggest this for any type of production environment.
Thank you very much! I was looking for exactly this solution 🙂
LikeLike
you save my life !!!! 🙂 I spent all week to find solution grrrrrrrrrrrrrr. I hope Microsoft fix this problem because I cant image to add everybody something to host file
LikeLike
This website http://www.setup-outlook.com may also be useful since it shows you how to setup any email with any version of outlook.
Hope it helps!
LikeLike
I’ve been trying to fix this for days….I’ve called Microsoft numerous times..just to be told to go look at a god dam web page that I’ve already looked at. Then they tell me that they want to charge me for some ticket request that someone will answer at some time in the future. I really don’t think this is worth it.
I’m investigating a Google or Apple solution. I think you need to be a software engineer to use Microsoft products. I guess this is why they are losing so much market share. I don’t want to be a software engineer. I just want this basic crap to work so I can check my e-mail. This company is ridiculous……
LikeLike
Thanks, my e-mail is running now, but after this setting, I can remove the alteration in hosts file?
Because when I open Outlook this message appeared:
“Security Alert
Autodiscover.ottobock.com.br
Information you exchange with this site cannot be viewed or changed by others. However, there is a problem with the site´s security certificate.
The name on the security certificate is invalid or does not match the name of the site.
Do you want to proceed?
Options:
Yes
No
View Certificate…
“
LikeLike
On the dialog that pops up, can you install the certificate (this should be available by clicking View Certificate). Does this make any difference?
LikeLike
Great! thank you verry MUCH!
LikeLike
great !!! This was exactly what I needed !!! Thanks
LikeLike
I love you Cameron Dwyer!!!! If you were a woman, i would seek you around the world and make you a marriage proposal!!!
LikeLiked by 1 person