Exchange2019 in a test environment

Brian Jesteadt 1 Reputation point
2022-01-04T20:34:30.687+00:00

We have been trying to verify our Exchange2019 backups are working properly, so we recently restored a few VMs to a spare server as a "Test Environment". Everything appeared ok at first, as all the mailbox databases mounted and OWA works normally.

I started a client VM to see if Outlook would connect, and that's when I found that Outlook clients that were 2013 or newer would not authenticate to the server correctly. Strangely, Outlook 2010 still works in the test lab network. But 2013 and 2016 give me an error with new Outlook profiles and with existing Outlook profiles. Setting up a new profile gets to the "Logging on to the mail server" step, and pops up an error dialog box with this text:

"Outlook cannot log on. Verify you are connected to the network and are using the proper server and mailbox name. The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action."

So why would OWA and Outlook 2010 work, but not 2013 and 2016? Is there some certificate validation in the newer versions? Why would it fail at the authentication step? The same systems in our production environment work perfectly. I'm stumped!

Outlook | Windows | Classic Outlook for Windows | For business
Exchange | Exchange Server | Management
{count} votes

4 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2022-01-04T21:47:52.857+00:00

    How are you restoring to the Test site?
    If you are restoring the vm snapshot that includes the Exchange database, that isnt supported.

    https://learn.microsoft.com/en-us/exchange/plan-and-deploy/virtualization?view=exchserver-2019

    The only supported method would be to build a new test server and forest that match the prod AD forest and restore the databases from an Exchange aware backup or copied edb database.

    Example:

    https://learn.microsoft.com/en-us/exchange/high-availability/disaster-recovery/restore-data-using-recovery-dbs?view=exchserver-2019

    or run the recoverserver option assuming the test forest was a clone of the prod:

    https://learn.microsoft.com/en-us/exchange/high-availability/disaster-recovery/recover-exchange-servers?view=exchserver-2019

    If the test environment is a server in the prod AD forest, then you could also use database portability:

    https://learn.microsoft.com/en-us/exchange/high-availability/disaster-recovery/database-portability?view=exchserver-2019


  2. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2022-01-08T14:05:51.213+00:00

    I know it doesnt appear to be an Autodiscover issue, but can you try this?

    HKEY_CURRENT_USER\Software\Microsoft\Office\X\Outlook\AutoDiscover

    Add the ExcludeExplicitO365Endpoint DWORD key to Outlook and set to 1

    https://learn.microsoft.com/en-us/outlook/troubleshoot/profiles-and-accounts/unexpected-autodiscover-behavior

    This should apply to Outlook 2016, and I know that 2013 isnt working either, but thought at least worth trying.

    These sort of issue are really hard to troubleshoot from here as you can imagine :)


  3. Brian Jesteadt 1 Reputation point
    2022-01-19T18:33:07.127+00:00

    I think I mentioned in a different reply that Outlook 2010 does work on another client that I had setup for testing. I did not uninstall 2013/2016 first, but I think that answers your question?

    0 comments No comments

  4. B-squared 1 Reputation point
    2022-08-12T18:12:38.283+00:00

    Experiencing the same thing here: cannot figure out how to get Outlook 2019 client to connect to Exchange in a restored test/lab environment.

    0 comments No comments

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.