5.7.322

Enhanced Status Code 5.7.322: Destination Certificate Expired

Permanent failure High severity Security
What it means

Enhanced Status Code 5.7.322 means “Destination Certificate Expired.” The receiving server presented an expired TLS certificate and enforcement refused to proceed. Nothing at your end caused it and nothing at your end can fix it.

At a glance
Code5.7.322
Bounce typeHard (permanent)
SeverityHigh
CategorySecurity
What to doSuppress the address; do not retry
What it looks like in your mail logs
550 5.7.322 certificate-expired: Destination mail server's certificate is expired

What does 5.7.322 mean?

Microsoft returns 5.7.322 with the text certificate-expired, meaning the destination mail server presented a certificate whose validity period has passed. Exchange Online defers with 4.7.322 during its retry window and escalates to 5.7.322 afterwards.

Certificate expiry is the most predictable failure in email infrastructure and still one of the most common. A certificate that was valid yesterday stops being valid at a fixed moment, and where MTA-STS or DANE is enforced there is no tolerance and no downgrade. Mail that flowed normally stops abruptly with no change at either end other than the passage of time.

Because the fault is entirely at the destination, the sender's job is to notice and to tell them. Many organisations discover their own expired mail certificate only when a sender reports it, since their inbound mail simply stops arriving and there is no bounce on their side to see. The recipient address remains valid throughout, and delivery resumes as soon as the certificate is renewed.

How 5.7.322 plays out

Your server attempts delivery
The recipient server returns a permanent 5.7.322 rejection
This is a hard bounce: the message will not be accepted as sent
Suppress the address and fix the root cause before resending

Where 5.7.322 sits: soft vs hard bounce

Soft bounce (4xx) Hard bounce (5xx)
NatureTemporaryPermanent
SMTP class4xx5xx
What to doLet it retrySuppress the address
Recoverable?OftenNo
5.7.322 is✓ this code

What each provider means by 5.7.322

A registered code does not oblige a provider to use it that way, and the large ones diverge. Match the wording in your own bounce, not the definition above.

Exchange Online The destination mail server certificate has expired Reference

Common causes of 5.7.322

  • The certificate on the destination mail server has passed its expiry date
  • An automated renewal at the destination failed silently
  • A renewed certificate was issued but never deployed to the mail server
  • One host in a multi-host MX set has an expired certificate while others are current
  • A load balancer or TLS terminator at the destination holds the stale certificate
  • The destination enforces MTA-STS or DANE, so expiry cannot be tolerated

How to fix 5.7.322

  • Do not suppress the recipient, since the address is valid and will work again on renewal
  • Tell the receiving organisation, as they frequently do not know
  • Confirm the expiry date with openssl s_client -starttls smtp and read notAfter
  • Check every host in their MX set, since only one may be affected
  • Retry after they confirm renewal rather than waiting for a queue lifetime
  • Monitor your own certificates so you never cause the same failure outbound

Frequently asked questions

What does 5.7.322 mean?
It means the receiving mail server presented a TLS certificate that has expired, and because TLS is being enforced there is no fallback to an unencrypted connection. Microsoft uses the text certificate-expired. The fault is entirely at the destination.
Is this my problem to fix?
No, but it is yours to report. Only the receiving organisation can renew their certificate. They often do not realise anything is wrong, because from their side inbound mail simply stops arriving and no bounce appears in their own systems. A message from a sender is frequently how they find out.
How do I check their certificate?
Run openssl s_client -starttls smtp -connect their-mx-host:25 and read the notAfter date in the returned certificate. If it is in the past, that is conclusive. Check each host listed in their MX records, because a single stale host among several produces intermittent failures.
Why did mail stop with no change on either side?
Because certificate expiry is a function of time rather than of configuration. Nothing changed except the date. This is why the failure appears sudden and total, and why it so often coincides with nobody having touched anything.
Should I keep retrying?
Retry once they confirm the certificate is renewed. Continuing to retry against an expired certificate accomplishes nothing until somebody acts, so an alert to a human is more useful than a longer queue lifetime.
Reviewed by Jennifer Jackson, Email Deliverability Analyst · June 2026 ← All bounce codes