Vendor: Wietse Venema · https://www.postfix.org/ · pkg:generic/postfix · Last reviewed 2026-12-05 · History
Summary
- When built against OpenSSL 3.5 or later, the Postfix default group list is “a minor adjustment of the OpenSSL compiled-in default setting”, so the hybrid group X25519MLKEM768 is default; with an earlier OpenSSL it is classical.1
- The client “delays generation of the hybrid post-quantum X25519MLKEM768 key-share until it is explicitly requested by the server”, to avoid trouble with servers that cannot handle a large Client Hello.1
- Postfix 3.10 (2025-02-16) and 3.9.2, 3.8.8, 3.7.13 and 3.6.17 allow empty
tls_eecdh_auto_curvesandtls_ffdhe_auto_groups, so groups can be set in an OpenSSL configuration file.23 - Classical groups can be disabled only through that OpenSSL configuration path; Postfix documents no hybrid-only setting and recommends against restricting groups for opportunistic TLS (checked 2026-12-05).1
- The documentation describes a test of SNI-selected ML-DSA keys (OpenSSL 3.5 or later), which “will become relevant once certification authorities start to issue post-quantum certificates”.4
To control groups, set
tls_config_fileandtls_config_nameand leavetls_eecdh_auto_curvesandtls_ffdhe_auto_groupsempty, with aGroupsline in the OpenSSL configuration.1
Cryptographic operations
- SMTP client and server key agreement (same settings for
smtpandsmtpd):tls_eecdh_auto_curvesis “the prioritized list of elliptic curves, that should be enabled in the Postfix SMTP client and server”; compiled-in default not read (2026-12-05).1 - Client: “the first curve listed will be used to construct the client’s initial TLS 1.3 keyshare”; a server that does not support it causes a HelloRetryRequest and an extra round trip.1
- From 3.10 with OpenSSL 3.0 or later, “the “curve” names can be more general key encapsulation mechanisms (KEMs), and/or may be loaded from an external “provider””.1
tls_ffdhe_auto_groups: finite-field groups for TLS 1.3 from 3.8 with OpenSSL 3.0 or later; default has the 2048 and 3072-bit groups.1smtpd_tls_eecdh_gradeis obsolete: “As of Postfix 3.6, the value of this parameter is always ignored”.5- Certificates: signature algorithms come from OpenSSL and are not named in the documentation; the only post-quantum certificate material is the ML-DSA SNI test.4
Versions
| Change | Version | Date | Package URL | Source |
|---|---|---|---|---|
smtpd_tls_eecdh_grade ignored; automatic curve selection only |
3.6 | pkg:generic/postfix@3.6.0 |
5 | |
tls_config_file and tls_config_name (OpenSSL configuration file) |
3.9, backported to 3.8.1, 3.7.6, 3.6.10, 3.5.20 | pkg:generic/postfix@3.9.0 |
67 | |
tls_ffdhe_auto_groups added |
3.8 | pkg:generic/postfix@3.8.0 |
1 | |
Empty tls_eecdh_auto_curves and tls_ffdhe_auto_groups allowed, for OpenSSL 3.5 post-quantum group syntax |
3.10.0 | 2025-02-16 | pkg:generic/postfix@3.10.0 |
23 |
KEM names accepted in tls_eecdh_auto_curves |
3.10 | 2025-02-16 | pkg:generic/postfix@3.10.0 |
1 |
Latest stable release 3.11.8, announced 2026-11-22.3 The 3.10.0 announcement: “Forward compatibility: Support for OpenSSL 3.5 post-quantum cryptography. To manage algorithm selection, OpenSSL introduces new TLS group syntax that Postfix will not attempt to imitate.”2
Configuration
Enabling PQC
Use OpenSSL 3.5 or later and leave tls_eecdh_auto_curves at its default; inspect with postconf -d tls_eecdh_auto_curves tls_ffdhe_auto_groups. For control over groups (3.6.17, 3.7.13, 3.8.8, 3.9.2 or later), in main.cf:1
tls_config_file = ${config_directory}/openssl.cnf
tls_config_name = postfix
tls_eecdh_auto_curves =
tls_ffdhe_auto_groups =
In openssl.cnf (OpenSSL 3.5 syntax, as printed in the documentation):1
postfix = postfix_settings
[postfix_settings]
ssl_conf = postfix_ssl_settings
[postfix_ssl_settings]
system_default = baseline_postfix_settings
[baseline_postfix_settings]
Groups = ?X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072
Disabling classical algorithms
- No directive for hybrid-only groups; the only documented route is shortening the
Groupsline above, untested here (2026-12-05). - The documentation advises against it: “Be sure to include at least “x25519” and “prime256v1””, and “Overly strict system-wide TLS settings will conflict with Postfix’s opportunistic TLS, where being less restrictive is better than downgrading to cleartext SMTP.”1
Open work
No Postfix issue tracker or mailing list thread about post-quantum signatures or hybrid-only group settings was checked (2026-12-05).
References
-
Postfix documentation, postconf(5):
tls_eecdh_auto_curves,tls_ffdhe_auto_groups,tls_config_file. https://www.postfix.org/postconf.5.html (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 -
Postfix stable release 3.10.0 announcement, 2025-02-16. https://www.postfix.org/announcements/postfix-3.10.0.html (accessed 2026-12-05) ↩ ↩2 ↩3
-
Postfix announcements list. https://www.postfix.org/announcements.html (accessed 2026-12-05) ↩ ↩2 ↩3
-
Postfix TLS_README, “Testing SNI support”. https://www.postfix.org/TLS_README.html (accessed 2026-12-05) ↩ ↩2
-
Postfix documentation, postconf(5):
smtpd_tls_eecdh_grade. https://www.postfix.org/postconf.5.html (accessed 2026-12-05) ↩ ↩2 -
Postfix documentation, postconf(5):
tls_config_file. https://www.postfix.org/postconf.5.html (accessed 2026-12-05) ↩ -
Postfix documentation, postconf(5):
tls_config_name. https://www.postfix.org/postconf.5.html (accessed 2026-12-05) ↩