Migration guide

Post-quantum TLS in Postfix mail servers

Postfix 3.11 built with OpenSSL 3.5 or later uses a default curve list that includes the hybrid group X25519MLKEM768 but delays sending its large key share until the receiving server asks for it, to avoid problems with middleboxes. Keep the defaults and check them with postconf.

Documentation only Last reviewed 2026-12-04

How this guide was validated. Drafted from the Postfix 3.11.0 release announcement, the Postfix 3.11 source change and the postconf(5) manual. Not run on a Postfix server here.

Applies to

  • Postfix 3.11 and later, compiled with OpenSSL 3.5 or later
  • SMTP over STARTTLS (ports 25 and 587) and implicit TLS

Before you start

  • Postfix 3.11 or later and OpenSSL 3.5 or later.
  • A copy of main.cf.

Steps

  1. Check versions
    Postfix reports its version; the OpenSSL version is the library it was built with.
    postconf mail_version
    openssl version

    Expect: Postfix 3.11+ and OpenSSL 3.5+.

  2. Check the curve list
    Postfix 3.11 with OpenSSL 3.5 changed the tls_eecdh_auto_curves default. The Postfix documentation says the default is a minor adjustment of the OpenSSL default that delays the hybrid X25519MLKEM768 key share until the server explicitly requests it, to avoid interoperability problems with SMTP servers that cannot handle a large TLS Client Hello.
    postconf -d tls_eecdh_auto_curves
    postconf tls_eecdh_auto_curves

    Expect: The configured value matches the compiled-in default, unless you set it yourself.

  3. Remove an old explicit list (if you set one)
    An explicit classical-only list from before hybrid support leaves the hybrid group out. Postfix strongly recommends its defaults.
    postconf -X tls_eecdh_auto_curves
    postfix reload

Verify

  1. Check SMTP yourself with openssl s_client
    Our web checker tests port 443 only, so it does not cover mail. Test your MX from another network with STARTTLS. Outbound port 25 is blocked on many cloud networks; use 587 if 25 does not connect.
    openssl s_client -starttls smtp -connect mail.example.com:587 -groups X25519MLKEM768 </dev/null 2>&1 | grep 'Negotiated TLS1.3 group'

    Expect: Negotiated TLS1.3 group: X25519MLKEM768, if the server selects it for this client.

Verify with our check

Run the public checker on your hostname at postquantumverified.com. It opens one TLS 1.3 handshake on port 443 and shows Verified (the server selected the hybrid group X25519MLKEM768), Not post-quantum (it selected a classical group) or Could not check. Each check gets a dated record at /verify/{hostname} that anyone can open again. If the result is not Verified, see Why did my check say Not post-quantum? and Why did my check say Could not check?.

The checker tests the public HTTPS endpoint on port 443 of the exact hostname you enter. Mail (SMTP, IMAP) and other ports are not covered by it.

Roll back

  1. Restore main.cf
    Restore the saved main.cf and reload.
    postfix reload

What this guide does not cover

  • Mail is server-to-server and opportunistic: the result depends on the sending and receiving servers, and on TLS 1.3 being negotiated.
  • Our public checker does not test SMTP or IMAP.
  • A key-exchange result says nothing about DKIM, SPF or certificate signatures.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.