Which Exchange configuration areas should be reviewed

Santiago Cruz 105 Reputation points
2026-01-12T08:19:22.2166667+00:00

How can a large on-premises Exchange Server 2019 environment configured in a Hybrid deployment with Exchange Online be troubleshot when, after recent infrastructure changes (certificate renewal and firewall updates), the following issues occur:

  • Intermittent external mail flow
  • Hybrid free/busy lookup failures
  • Autodiscover working internally but failing for some external clients
  • OAuth authentication errors between on-premises Exchange and Microsoft 365

Which Exchange configuration areas should be reviewed

Exchange | Exchange Server | Development
0 comments No comments

Answer accepted by question author
Hin-V 16,830 Reputation points Microsoft External Staff Moderator
2026-01-12T11:04:48.4166667+00:00

Hi @Santiago Cruz

Thank you for posting your question in Microsoft Q&A. 

I understand you are troubleshooting issues after recent infrastructure changes, including certificate renewal and firewall updates, which can commonly affect TLS bindings, external endpoint accessibility, OAuth authentication, and network connectivity in an Exchange Hybrid environment.

You could begin by reviewing the following areas first.

Certificates and TLS Bindings 

Verify the renewed public certificate is installed in the correct store (Local Computer → Personal) and assigned to IIS and SMTP services: 

Get-ExchangeCertificate | FL Thumbprint,Services,NotAfter  

Confirm the Hybrid Send Connector references the correct TLS certificate (this is critical for Hybrid mail flow): 

Get-SendConnector | FL Name,TlsCertificateName  

If the connector is still pointing to the old certificate, update it via this command: 

Set-SendConnector "Outbound to Office 365*" -TlsCertificateName "<I>Issuer<S>Subject" 

Review Receive Connectors only if they are customized (for example, relay or explicitly configured TLS connectors): 

Get-ReceiveConnector | FL Name,TlsCertificateName  

Ensure the public certificate includes the required Subject Alternative Names (SANs), for example: 

mail.yourdomain.com 

autodiscover.yourdomain.com 

Validate that IIS HTTPS bindings on all Internet‑facing Exchange servers or load balancers are using the renewed certificate. 

For Autodiscover and Free/Busy, confirm SSL certificates are correctly applied on the EWS and Autodiscover virtual directories. 

Firewall and Network Rules 

Confirm inbound and outbound firewall rules allow: 

TCP 443 (HTTPS – Autodiscover, EWS, OAuth, Hybrid services) 

TCP 25 (SMTP – Hybrid mail flow) 

Verify there is no SSL/TLS inspection or pre‑authentication applied to Microsoft 365 traffic, as this can break OAuth and TLS trust. 

Test external access using Microsoft Remote Connectivity Analyzer: https://testconnectivity.microsoft.com 

Validate firewall connectivity to ports 25 and 443 from external sources where applicable. 

If a proxy is used, confirm it is correctly configured on Exchange: 

Get-ExchangeServer | FL InternetWebProxy  

Set it if required: 

Set-ExchangeServer -Identity "ServerName" -InternetWebProxy "http://proxy:8080" 

Check load balancer or reverse proxy configurations (if present) to ensure they are not blocking or modifying: /ews/exchange.asmx, /autodiscover, /metadata/json 

Review IIS logs (%SystemDrive%\inetpub\logs\LogFiles) for HTTPS errors (401/403/500) from external client IPs. 

OAuth and Federation Authentication 

Verify the OAuth certificate configured in AuthConfig matches an existing, valid certificate: 

Get-AuthConfig | FL CurrentCertificateThumbprint  

If necessary, update and publish the new OAuth certificate: 

Set-AuthConfig -NewCertificateThumbprint <NewThumbprint> 
Set-AuthConfig -PublishCertificate 
iisreset  

Test OAuth connectivity for Hybrid Free/Busy via: 

Test-OAuthConnectivity -Service EWS -TargetUri https://outlook.office.com/EWS/Exchange.asmx -Mailbox ******@domain.com 

Validate federation trust health:  

Test-FederationTrust -UserIdentity ******@domain.com -Verbos

Recreate trust using the Hybrid Configuration Wizard if errors are detected. 

Ensure server time is synchronized (within arround 5 minutes of NTP sources), as OAuth tokens are time‑sensitive. 

I hope this helps. 

Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution. 


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Newest
  1. AI answer

    2026-01-12T08:19:32.8533333+00:00

    To troubleshoot the issues in a large on-premises Exchange Server 2019 environment configured in a Hybrid deployment with Exchange Online, you should review the following configuration areas:

    1. Availability: Ensure that the on-premises Exchange servers are correctly published to the internet. This includes:
      • Verifying firewall settings to allow inbound access from the internet to the Autodiscover and Exchange Web Services (EWS) endpoints.
      • Ensuring that the on-premises Exchange servers accept inbound SMTP mail to facilitate secure mail transport.
    2. Certificates: Check the certificates used for secure mail transport between the on-premises and Exchange Online organizations. Ensure that:
      • The certificates are issued by a commercial certification authority (CA).
      • They are not expired.
      • The Internet Information Service (IIS) and Simple Mail Transport Protocol (SMTP) services are assigned to the certificates.
    3. Hybrid Configuration: Review the configuration of the Hybrid deployment using the Hybrid Configuration wizard. Ensure that it is set up correctly, as misconfigurations can lead to issues with mail flow and free/busy lookups.
    4. OAuth Authentication: If OAuth authentication errors are occurring, ensure that OAuth is configured properly between the on-premises Exchange and Microsoft 365. This includes verifying that the Hybrid Configuration wizard has been run to set up OAuth authentication, especially if your organization contains Exchange 2010 or Exchange 2007 servers.
    5. Free/Busy Lookups: For hybrid free/busy lookup failures, check the federation trust and refresh the metadata if necessary by running the Get-FederationTrust | Set-FederationTrust -RefreshMetadata command in the Exchange Management Shell.
    6. Autodiscover: Since Autodiscover is working internally but failing for some external clients, verify the Autodiscover service configuration and ensure that the external DNS records are correctly set up to point to the on-premises Exchange servers.

    By reviewing these areas, you can identify and resolve the issues affecting your hybrid deployment.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.