Multiple Office365 Outlook Accounts Disconnecting you and prompting for password?

Yeah, me too!   It happens when you actually setup two accounts in Outlook 2010 to connect to Office 365 servers.   It does NOT happen if you open a second mailbox under the first primary one, but less people do that on Outlook 2010.

Apparently the fix is coming in Office 365 when they upgrade the servers to Exchange 2010 SP2, but I have heard that even then this may not work.    The guys on @Office365 twitter account are aware of this, and I have a case open on it they are directly referring to.

The fix I stole from this thread (Brendan Erofeev thanks!), but I wanted to make it a bit clearer.

Essentially, the problem is that the Windows Credential manager is unable to save credentials for two Microsoft Outlook configured proxies.   That means that one of your accounts will always prompt you and become disconnected in Outlook.   The hack, until Microsoft fix this is as simple as creating a hosts entry to the same IP of your servers proxy and setting that in Outlook.  Here is a step by step:

  1. Open Outlook.   Click File, Account Settings, Account Settings….


  2. Double click on the first account, click on more settings, the Connection Tab, then Exchange Proxy Settings Button.   Write down the server name in the “Use this URL to my proxy server for Exchange:“


  3. Cancel out of the above account.   Keep note of the proxy server you just wrote down.   Lets pretend yours is (it will be different than this!).
  4. Next open up your hosts file on your PC. (If you need to know where this is, click here). 
  5. Open up a Command Prompt on your PC. Type nslookup and you will be given back an IP address for this server.   (Obviously, replace the server name above with the one YOU wrote down earlier).   Take note of this IP.   Lets pretend its –  again, it wont be, this is just pretend 😉
  6. Now, in your hosts file, add a line that says (remember, use YOUR IP you wrote down):    

    and another entry              

    (The 127 address is so that Outlook does not rediscover the corrected settings again from Microsoft).

  7. Pause for a moment, and take in what we are doing here….       We are creating a false and spoof DNS name “” for the same IP address of your actual servers proxy.   This will mean we can use this proxy in the second account in outlook and Windows will save your password and all will work properly.
  8. So, again, follow the pretty path in the image I spent hours creating on step 2 above….   but this time do it on the second office365 account in outlook.    When you get to the last step of the arrows, you change the name there, and only there, to
  9. Lastly, and importantly, you need to add a loopback IP for autodiscover to the hosts file.  
  10. If you followed this correctly, you should now restart outlook and have two working accounts.

Good luck!

If your computer self combusts, explodes or in some other way disintegrates, you cannot hold me or anyone at NTES responsible!

  4 Replies to “Multiple Office365 Outlook Accounts Disconnecting you and prompting for password?”

  1. December 12, 2011 at 4:24 am

    Thanks for clearing this up, I’ve been wondering how to fix this for a customer!

  2. Joe
    February 6, 2012 at 9:44 pm

    Thanks, this worked for my password prompting issue, but now the problem profile cannot send emails (Error 0x80040111). All other features work fine (incoming email, shared calendar & contacts, etc.). Any ideas?

  3. February 11, 2012 at 5:40 pm

    Hi Nick,

    I’m glad you put some screen shots to the solution I outlined, it makes it much easier for people to understand.

    Just thought I would drop you a note to say that I am still working with Microsoft on this, and we have discovered a less “hacky” way to workaround the problem. If you are interested in checking it out, see the thread:

  4. MM
    February 1, 2021 at 4:05 am

    i am not able to see the exchange dns option

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.