MailFixIt

Microsoft SMTP certificate identity error

Fix Outlook 5.7.325 certificate hostname mismatch

Microsoft uses 5.7.325 when the destination SMTP certificate identities do not match the required hostname or MX host. Deploy a certificate with the correct subject alternative name on every destination listener.

Problem description

The NDR reports:

550 5.7.325 certificate-host-mismatch: Remote certificate must match the hostname.
Diagnostic availability: MailFixIt does not currently inspect live destination certificates or DANE policy. Use a controlled SMTP STARTTLS test.
Is this temporary or permanent?

The 5.x.x result remains permanent until certificate identity and destination host agree.

Probable causes

How to fix it

  1. Identify the exact MX hostname in the failure.
  2. Inspect the leaf certificate presented after STARTTLS.
  3. Compare every DNS-ID/SAN with required hostnames.
  4. Deploy the correct certificate and complete chain to all listeners.
  5. Retest each MX host and address family.

Frequently asked questions

What does Microsoft 5.7.325 mean?

The destination SMTP certificate's common name or subject alternative names do not match the required hostname or MX host.

Should the certificate cover the email domain?

It must cover the actual SMTP host identity required by the transport policy, which is commonly an MX hostname rather than the bare recipient domain.

Does MailFixIt inspect live SMTP certificates?

No. Live certificate and policy validation remains outside the current checker.

Related email diagnostics

Primary sources: Microsoft Exchange Online NDR reference and RFC 7672 SMTP Security via DANE.