Hi,
I have an environment with Exchange 2013 coexistence with 2019 hybrid, oauth enabled. There are F5 load balancers and firewall in between Internet and Exchange servers.
When we tested internal network, Outlook 2019 works fine. all OK.
We we tested external network, Outlook with IOS/Andriod also works fine, no issue was found now.
However, when we wanna double confirm oAuth, we got errors when running command "Test-oAuthConnectivity" and using "Microsoft Remote Connectivity Analyzer".
Please kindly advise whats going on? which part could cause this issue? Thanks.
Error:
Testing Outlook Mobile Hybrid Modern Authentication (HMA) for SMTP email address: ******@contos.com.
Testing Outlook Mobile Hybrid Modern Authentication (HMA) failed.
Additional DetailsElapsed Time: 8990 ms.
Test StepsSending an Autodiscover request to the on-premises Exchange Autodiscover service: on-premises Exchange Autodiscover service didn't return a valid response that passed analysis.Test
Steps
Sending an Autodiscover request to the on-premises Exchange Autodiscover service:
The on-premises Exchange Autodiscover service didn't return a valid response.Additional
DetailsException details:
Message: The underlying connection was closed: An unexpected error occurred on a receive.
Type: System.Net.WebException
Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.M365.RCA.Services.RcaHttpRequest.GetResponse()
Exception details:
Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Type: System.IO.IOException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
Exception details:
Message: An existing connection was forcibly closed by the remote host
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)