Mailflow issue Exchange Onprem – Exchange Online Hybrid

Replacing a certificate in Exchange hybrid looks simple until mail flow starts failing.

In my case, the issue appeared right after a certificate replacement. Outbound queues started growing, and mail flow to Exchange Online began to degrade. At first glance, the obvious assumption was that the new certificate had already been imported successfully, so the problem had to be somewhere else.

It was not.

The real issue was on the hybrid transport side. The new certificate was present but the TlsCertificateName used by the hybrid send connector was not correctly aligned with the new certificate identity.

That distinction matters. In Exchange hybrid, importing and enabling a certificate doesn’t automatically mean the connector is presenting the correct TLS identity.

454. 4.7.5 The certificate specified in TlsCertificateName of the SendConnector could not be found.

What I checked

First, I verified the certificate details on the Exchange servers:

PowerShell
Get-ExchangeCertificate -Server EXCHSERVER01 |
Format-List Thumbprint,Subject,Issuer,Services,HasPrivateKey,NotAfter

This confirmed that the new certificate was present and usable.

Then I generated the expected TLS string from the new certificate and compared it with the value configured on the hybrid send connector:

PowerShell
$cert = Get-ExchangeCertificate -Server EXCHSERVER01 -Thumbprint <NEWTHUMBPRINT>
$tls  = "<I>$($cert.Issuer)<S>$($cert.Subject)"
$tls

(Get-SendConnector "Outbound to Office 365_(XXX)").TlsCertificateName

That comparison exposed the mismatch.

The fix

Once the correct TLS string was confirmed, I updated the send connector manually:

PowerShell
Set-SendConnector "Outbound to Office 365_(XXX)" -TlsCertificateName $tls

To keep the hybrid transport path consistent, I also aligned the relevant receive connectors with the same TLS string:

PowerShell
Set-ReceiveConnector "EXCHSERVER01\Default Frontend EXCHSERVER01" -TlsCertificateName $tls

And if the new certificate had not yet been assigned to SMTP, that needed to be corrected first:

PowerShell
Enable-ExchangeCertificate -Thumbprint <NEWTHUMBPRINT> -Services SMTP

After that, the queues cleared and hybrid mail flow returned to normal.

The actual lesson

The certificate replacement itself was not the real fix.

The real fix was making sure the hybrid connector was using the correct TLS identity for the new certificate.

That is the part that is easy to miss. In Exchange hybrid, a successful certificate import is only the beginning. If the connector still points to the wrong TLS certificate name, mail flow can break even though the new certificate looks fine in the certificate store.

Leave a Reply

Your email address will not be published. Required fields are marked *