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
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
- Check versions
Postfix reports its version; the OpenSSL version is the library it was built with.postconf mail_version openssl version - 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 - 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
- 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'
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?.
Roll back
- 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.