Answer
PROBLEM
The Mailbox Folder Structure Retrieval test fails with the error:
'Failed during: Testing connection'
Details: Failed while testing connection, Auto Discovery failed.
ENVIRONMENT
- Archiver
- Using the EWS protocol for Mailbox Folder Structure Retrieval on Microsoft Exchange 2007 SP1 or newer or Microsoft 365 (previously known as Microsoft Office 365)
SOLUTION
Ensure that
- the username/password are entered correctly in the wizard
- that the password of the user did not expire
- that the user account is not locked out of Active Directory
Run this command in the Microsoft Exchange shell:
Test-OutlookWebServices -Identity "user@domain.com" | FL
For further information on this command and its results, please consult the following Microsoft articles:
How Autodiscover works:
If GFI Archiver is installed on the same computer as Microsoft Exchange 2007 a Microsoft Windows security feature (the "loopback check") can cause a 401.1 unauthorized error. Please refer to the following article for further details and workarounds:
You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-013
You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-013
CAUSE
GFI Archiver cannot successfully connect to Autodiscover services provided by Microsoft Exchange.