Start a conversation

Error: 'Failed to Do Autodiscovery' When Adding/Editing an EWS Entry Under Mail Servers to Archive

Overview

Consider the following symptoms:

Trying to add an EWS based journal entry under Configuration > Mail Servers to Archive fails with the message:

Failed during: Testing connection
  Details: Could not perform test of connection. Details: Failed to Do Autodiscovery

..\Core\DebugLogs\EWSProviderTest.log

2013-08-30,08:09:19,849,1,"#00003F4C","#00000017","info ","EWSProviderTest",
"AutoDiscover journaluser@domain.com"

2013-08-30,08:09:23,665,1,"#00003F4C","#00000017","info ","EWSProviderTest",
"Failed to do Autodiscovery"

..\Core\DebugLogs\UAutoDisc.log

2013-08-30,08:09:20,062,1,"#00003F4C","#00000017","info ","UAutoDisc","-?
Scanning for SCP urls for the current computer Site=Default-First-Site-Name"

2013-08-30,08:09:20,064,1,"#00003F4C","#00000017","info ","UAutoDisc",
"+= adding (prio 1) 'https://mailserver.domain.com/Autodiscover/Autodiscover.xml'
for the Site=Default-First-Site-Name from
'LDAP://CN=mailserver,CN=Autodiscover,CN=Protocols,CN=mailserver,CN=Servers,CN=Exchange
Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Exchange
Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=com'
to the top of the list (exact match)"

2013-08-30,08:09:20,072,1,"#00003F4C","#00000017","info ","UAutoDisc",
";=? Trying 'journaluser@domain.com' at
'https://mailserver.domain.com/Autodiscover/Autodiscover.xml'"

2013-08-30,08:09:23,636,1,"#00003F4C","#00000017","error ","UAutoDisc",
"Error: System.Net.WebException:
The underlying connection was closed: An unexpected error occurred on a send. --->
System.IO.IOException: Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host. --->
System.Net.Sockets.SocketException:
An existing connection was forcibly closed by the remote hos
t.


When trying to open the correct Autodiscover/EWS URL manually in a browser from the same server on which GFI Archiver is installed it fails to open (e.g. with a 404 not found error). In the above example, it would be: https://mailserver.domain.com/Autodiscover/Autodiscover.xml

Note: In GFI MailArchiver 2013 or older, the logs mentioned above were found in ..\Core2\DebugLogs.

This article gives a resolution to these errors. 

 

Root Cause

IIS bindings are configured in a way that the required sites (Autodiscovery/EWS) are not reachable from GFI Archiver.

 

Environment

  • GFI Archiver
  • Microsoft Exchange 2007 or later

 

Solution

  1. Open the IIS 7 Manager on the Microsoft Exchange server.
  2. Expand the nodes and mark the Default Web Site.
  3. Open the Bindings.
  4. Check if the following binding exists:
    • Type = https
    • IP address = All Unassigned
    • Port = 443
    • SSL certificate = Microsoft Exchange (or your own certificate)
  5. If this sitebinding is missing, add this binding.
  6. Configure the bindings in a way that the site is reachable for GFI Archiver.

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments