The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Thank you for reaching out to the Microsoft Q&A forum.
The root cause may lie in how Entra ID validates client certificates in the context of HMA. When a mobile client attempts to authenticate, it first completes CBA against Entra ID to receive an OAuth token, and then presents that token to the on-premises Exchange server via the X-MS-With-OAuth-Assertion header. If this token acquisition fails, Exchange never receives a valid assertion and returns a 401 Unauthorized.
You may want to check the following:
1.Check Microsoft Entra sign-in logs
Go to Entra ID > Monitoring > Sign-in logs, filter by the affected user and the Exchange resource, and review the error details. The logs may indicate whether the issue is related to certificate validation, token issuance, or Conditional Access.
2.Verify the certificate authority configuration
Ensure the issuing CA is uploaded under Entra ID > Security > Certificate Authorities and confirm that the CRL Distribution Point (CDP) for the certificate can be reached externally over HTTP.
You may also review the trusted certificate authorities with:
Get-AzureADTrustedCertificateAuthority
3.Validate the client certificate
Confirm that the certificate includes the correct UPN or SAN value that matches the user’s Entra ID account (for example, ******@domain.com).
4.Check Hybrid Modern Authentication configuration on Exchange
-You may want to confirm the OAuth configuration with the following commands:
Get-AuthServer | FL Name, Enabled, IssuerIdentifier, AuthMetadataUrl
Get-OrganizationConfig | FL OAuth2ClientProfileEnabled
-You can also test OAuth connectivity:
Test-OAuthConnectivity -Service EWS -TargetUri https://<exchange-fqdn>/ews/exchange.asmx -Mailbox ******@domain.com | FL
5.Review reverse proxy or WAF configuration
If a reverse proxy or WAF is used, ensure it is not removing the Authorization: Bearer header on Exchange paths such as ActiveSync and MAPI-HTTP paths, as Outlook Mobile relies on MAPI over HTTP.
Please note that, as a moderator in this forum, I do not have access to your environment and cannot reproduce the issue on my side. The steps above are general troubleshooting suggestions that may help you narrow down the possible cause. If the issue persists, you may consider opening a Microsoft support ticket through Services Hub for further assistance so the support team can investigate the issue directly in your environment.
I hope the information above helps you further investigate this issue.
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.