How to enable post-quantum settings in Postfix

Postfix supports post-quantum key exchange only when built against OpenSSL 3.5 or later, and its defaults in version 3.11 already reflect that. This page covers the settings that control it and the checks to make first.

On this page

Does Postfix have post-quantum settings you can turn on?

If you run Postfix and need to record whether it can use post-quantum key exchange, the short answer is that it can, but only when Postfix is built and run against OpenSSL 3.5 or later. The hybrid group X25519MLKEM768 comes from OpenSSL, so Postfix has no separate post-quantum switch of its own. Postfix 3.10 added forward-compatibility support for OpenSSL 3.5 post-quantum cryptography, and Postfix 3.11 changed the default of tls_eecdh_auto_curves to handle it. The sources cover the Postfix 3.10 and 3.11 release notes, the 3.11.5 announcement and the postconf documentation. They list no separate editions, and they do not record a separate on or off setting for post-quantum in the product.

For your inventory, the relevant controls are tls_eecdh_auto_curves and tls_ffdhe_auto_groups. The postconf text says that when Postfix is compiled against OpenSSL 3.5 or later, the default is a minor adjustment of the OpenSSL default. It delays generating the X25519MLKEM768 key share until the server explicitly requests it, to avoid interoperability problems with SMTP servers that cannot handle the larger TLS Client Hello. The Postfix 3.11 release notes describe that change as a way to avoid trouble with network equipment that mishandles hello messages larger than one Ethernet TCP segment. Confirm the Postfix version and the linked OpenSSL version on each host with postconf -d and your build records, since the sources describe behavior by version and do not give a runtime check for it. If you want fine-grained control of supported groups, the sources describe setting both parameters to empty so that selection is done through OpenSSL configuration, with tls_config_file as the mechanism.

Post-quantum certificate signatures are a different matter. The Postfix TLS documentation ties post-quantum certificates to certificate authorities issuing them, and its ML-DSA SNI test requires OpenSSL 3.5 or later. Postfix offers no setting that turns on post-quantum certificate signatures, so record that gap separately from key exchange. Ask your certificate authority which post-quantum certificate types it issues, and confirm your Postfix and OpenSSL versions before you describe any part of this as supported in your environment.

Which Postfix versions and OpenSSL builds support post-quantum key exchange

This table compares Postfix 3.5 through 3.11 by the OpenSSL build each release is compiled against, showing whether the X25519MLKEM768 hybrid group is generated by default and what the tls_eecdh_auto_curves and tls_ffdhe_auto_groups defaults do. Read each row against the source date listed in its cell, and treat any cell marked as not stated as something to confirm with the vendor or in your own build. The main takeaway is that hybrid key exchange depends on Postfix being compiled against OpenSSL 3.5 or later, and the sources do not state the hybrid group behavior for the 3.5 and 3.6 lines.

Postfix lineOpenSSL before 3.5OpenSSL 3.5 or later
Postfix 3.5 and 3.6No hybrid post-quantum group. Not stated in the sources for 3.5 and 3.6 with OpenSSL 3.5 or later.Not stated in the sources for hybrid group behavior on 3.5 and 3.6 lines.
Postfix 3.7No hybrid post-quantum group in the sources. tls_ffdhe_auto_groups is not yet available.Not stated in the sources for hybrid group behavior on the 3.7 line.
Postfix 3.8tls_ffdhe_auto_groups is available with defaults for 2048 and 3072 bit FFDHE groups. No hybrid group stated.Not stated in the sources for hybrid group behavior on the 3.8 line.
Postfix 3.9tls_eecdh_auto_curves and tls_ffdhe_auto_groups defaults as shown by postconf -d. No hybrid group stated.Not stated in the sources for hybrid group behavior on the 3.9 line.
Postfix 3.10 (entry dated 2025-02-12)tls_eecdh_auto_curves and tls_ffdhe_auto_groups may be set empty to hand selection to OpenSSL.Support for OpenSSL 3.5 post-quantum cryptography added as forward-compatibility change. Hybrid group default generation not stated in this entry.
Postfix 3.11 (entry dated 2025-11-02)Default tls_eecdh_auto_curves unchanged from the OpenSSL default behavior.tls_eecdh_auto_curves default delays X25519MLKEM768 generation until the server requests it. Confirm the current default with postconf -d.

Which Postfix settings control post-quantum key exchange

Postfix hands most TLS key exchange decisions to OpenSSL, steered by a small set of parameters. The cards below cover the settings that shape which groups and curves are offered, how cipher lists and certificates are loaded, and how DANE checks are applied. Read each card with the Postfix version and the OpenSSL version it is built against, since the defaults depend on both.

Elliptic curve groups with tls_eecdh_auto_curves

This parameter holds the prioritized list of elliptic curves that the Postfix SMTP client and server offer for key exchange. Its default is shown by postconf -d. When Postfix is compiled against OpenSSL 3.5 or later, the default only delays generation of the hybrid X25519MLKEM768 key share until the server requests it, which the postconf text describes as a way to avoid interoperability problems with servers that mishandle large TLS Client Hello messages. The parameter does not control certificate signatures or cipher suites. Check the value on your build, and do not assume a post-quantum group is offered unless postconf -n or a handshake test shows it.

Postconf source

FFDHE groups with tls_ffdhe_auto_groups

Available in Postfix 3.8 and later, this parameter lists the finite-field Diffie-Hellman (FFDHE) groups used for key exchange in TLS 1.3. Its default includes only the 2048 and 3072 bit groups. Setting the value empty disables FFDHE support in TLS 1.3. Postfix 3.10 allows this value to be empty, and then group selection can be handled through OpenSSL configuration. This parameter does not affect the elliptic curve list, so review both settings together when you change key exchange behavior.

Postconf source

Fine-grained groups through tls_config_file

For finer control of supported groups, the postconf text says to set both tls_eecdh_auto_curves and, where available, tls_ffdhe_auto_groups to an empty value. Group selection then moves to OpenSSL configuration, which Postfix reads through tls_config_file. The text notes this applies to Postfix 3.6.17, 3.7.13, 3.8.8, 3.9.2 and later, and gives an example. Postfix 3.10 release notes also say that OpenSSL's new group syntax is something Postfix will not try to imitate. Confirm the OpenSSL version on your host, because the directives you can use depend on it, and test the resulting handshake before relying on it.

Postconf source

Cipher lists with tls_medium_cipherlist and tls_high_cipherlist

These two parameters set the OpenSSL cipher lists that Postfix uses at each security grade. Their defaults are shown by postconf -d, and the postconf text strongly encourages administrators not to change tls_high_cipherlist. The smtpd_tls_mandatory_ciphers parameter defaults to medium grade for the Postfix SMTP server. Cipher lists control symmetric and authentication choices, not the key exchange groups, which are set by the parameters above. Do not treat a cipher list edit as a post-quantum setting unless the vendor or OpenSSL documentation says so for your version.

Postconf source

Certificates with smtpd_tls_chain_files

Since Postfix 3.4, the preferred way to configure the SMTP server key and certificate is smtpd_tls_chain_files. Each file starts with the private key, followed by the matching certificate chain. The TLS_README advises against storing the key and its chain in separate files. The server private key must not be encrypted, and server certificates are required in TLS 1.3. This parameter controls which certificate Postfix presents, not the key exchange groups. Post-quantum certificates would be loaded here only once certificate authorities issue them and your OpenSSL version supports the algorithm.

TLS README

DANE checks with smtp_tls_security_level

Postfix supports DANE at the dane and dane-only levels of smtp_tls_security_level. Both rely on TLSA records published under DNSSEC. The dane-only level defers delivery if usable TLSA records are missing or certificate verification fails. DANE matches certificates against records in DNS, so it does not select key exchange groups or cipher suites. The smtp_tls_fingerprint_digest setting, which defaults to sha256 from Postfix 3.6, governs fingerprint matching and is a separate choice. Test DANE on the destinations that matter to you, because a strict level can hold back mail.

TLS README

How to enable post-quantum key exchange in Postfix, step by step

This sequence confirms which Postfix and OpenSSL versions an installation runs, chooses between the default behavior and an OpenSSL-configuration method, and verifies from a test connection and the mail log which key exchange group was negotiated. The result is a dated record of whether hybrid post-quantum key exchange is in use on that server.

  1. Confirm the Postfix version installed

    The administrator checks which Postfix release is installed on the mail server, since the available settings depend on the version. Illustrative command: postconf mail_version, which prints the running Postfix version. The sources on this page name 3.6.17, 3.7.13, 3.8.8 and 3.9.2 as the releases where the empty-value method is described, with later releases including it, and 3.11 as the release that changes the tls_eecdh_auto_curves default with OpenSSL 3.5 and later. Confirm the exact behavior against the Postfix documentation for the installed version. This step is complete when the version number is written down alongside the server name in the change record.

  2. Confirm the OpenSSL version Postfix uses

    The administrator confirms which OpenSSL library the Postfix binary links against, because post-quantum key exchange in Postfix depends on OpenSSL 3.5 or later. Illustrative command: postconf -a lists the SASL and TLS plug-ins compiled into the binary, and the mail log or the startup output may show the OpenSSL version string. Also check the OpenSSL package on the host, since a shared library can differ from what the binary was built against. This step is complete when the OpenSSL version that the running Postfix process uses is recorded. If it is earlier than 3.5, the post-quantum options described below are not available on that build.

  3. Decide between default and OpenSSL configuration

    The administrator chooses one of two methods. With the default behavior, Postfix keeps its built-in tls_eecdh_auto_curves value, which on OpenSSL 3.5 or later delays generation of the hybrid X25519MLKEM768 key share until the server requests it, to avoid problems with SMTP peers that cannot handle a large TLS Client Hello. With the OpenSSL-configuration method, the administrator sets both tls_eecdh_auto_curves and, where available, tls_ffdhe_auto_groups to empty values, then points tls_config_file at an OpenSSL configuration file that lists the groups. Illustrative commands: postconf -e tls_eecdh_auto_curves= and postconf -e tls_ffdhe_auto_groups=. The change is complete when postconf tls_eecdh_auto_curves tls_ffdhe_auto_groups tls_config_file shows the chosen values. Confirm the setting names and syntax against the Postfix documentation for the installed version before editing production configuration.

  4. Reload Postfix with the new settings

    The administrator applies the configuration change and restarts or reloads the service so the new TLS settings take effect. Illustrative command: postfix reload, followed by postfix check to confirm the configuration parses without errors. If the OpenSSL-configuration method is used, the OpenSSL configuration file referenced by tls_config_file must be readable by the Postfix process owner. This step is complete when postfix check returns without errors and the service reports the reload in the mail log.

  5. Test with a client that negotiates the hybrid group

    The administrator connects to the server from a test client that offers the hybrid X25519MLKEM768 group, using a TLS client built on OpenSSL 3.5 or later. Illustrative command: an openssl s_client connection to the SMTP port with STARTTLS, run from a host whose OpenSSL build includes the hybrid group. The test confirms that the handshake completes with the server's current certificate and that the client reports a negotiated group. Peers that cannot yet negotiate hybrid groups will fall back to classical groups, which is expected. This step is complete when the test client shows a completed TLS handshake against the Postfix server.

  6. Check the mail log for the negotiated group

    The administrator reviews the Postfix mail log for the TLS session details that record the negotiated key exchange group for the test connection. The log format and the fields it shows depend on the Postfix version and the logging level, so confirm the expected fields against the Postfix documentation for the installed version. Illustrative command: grep -i tls /var/log/maillog or the platform equivalent. This step is complete when the log entry for the test connection names the negotiated group, and the administrator records that result alongside the Postfix and OpenSSL versions. A group that does not appear, or a fallback to a classical group, should be noted as a finding for the next review.

How the setup differs by Postfix version and OpenSSL build

In this combination, Postfix 3.11 changes the default for tls_eecdh_auto_curves when it is compiled against OpenSSL 3.5 or later. The default is a minor adjustment of the OpenSSL compiled-in default that delays generation of the hybrid X25519MLKEM768 key share until the server explicitly requests it. The release notes describe this as a fix for network equipment that mishandles TLS hello messages larger than one Ethernet TCP segment, so the default avoids sending the large hybrid key share unless it is needed.

  • Default behavior changed: Postfix 3.11 carries a feature entry dated 20251102 titled "Post-quantum cryptography support" that changes the default with OpenSSL 3.5 and later.
  • Delayed key share: The hybrid group is not generated up front, which keeps the initial Client Hello smaller for interoperability.
  • Default lists still apply: tls_ffdhe_auto_groups and the other named parameters keep their defaults unless you change them.
  • Fine-grained control: To control supported groups yourself, you can set tls_eecdh_auto_curves and tls_ffdhe_auto_groups to empty values so selection happens in OpenSSL configuration.
  • Confirm the build: Check which OpenSSL version the installed Postfix binary links against, since a 3.11 release on an older OpenSSL will not get this behavior.

Before you change anything, confirm the Postfix release with postconf mail_version and the linked OpenSSL version with your package or build records, then review the effective value with postconf -n.

Where the post-quantum group is negotiated during a Postfix TLS handshake

This simplified illustration follows an SMTP client and a Postfix server through a TLS handshake. The client offers the groups listed in tls_eecdh_auto_curves, and it includes the hybrid X25519MLKEM768 group only when the OpenSSL default permits it. The server selects one group from the offer. If the peer cannot process the larger Client Hello that the hybrid group produces, the exchange falls back to classical groups. Check the group list and the OpenSSL version on both ends, because the outcome depends on both.

Simplified illustration; the group list and OpenSSL version determine the outcome.

What Postfix's sources do not say about post-quantum settings

The Postfix sources opened for this topic show how OpenSSL-backed TLS settings and a 3.10 forward-compatibility change touch post-quantum key exchange, but they leave several points open. The four items below are the ones an administrator should confirm with the Postfix maintainers or the distribution packager before planning a change.

Dedicated on or off switch

The sources describe post-quantum behavior through the tls_eecdh_auto_curves and tls_ffdhe_auto_groups parameters and through OpenSSL, but they do not name a single parameter that turns post-quantum key exchange on or off. Ask the maintainers whether such a switch exists or is planned, and whether the current behavior is controlled only by the list values and the OpenSSL build. Confirm the answer for the exact Postfix version and OpenSSL version you run, since the 3.11 change to the default is tied to OpenSSL 3.5 and later.

Postconf source

Post-quantum certificates and signatures

The TLS_README covers an ML-DSA SNI test that requires OpenSSL 3.5 or later, and says post-quantum certificates via SNI will matter once certificate authorities issue them. The sources do not state that Postfix can configure post-quantum certificates or signatures for its SMTP server or client today. Ask the maintainers whether smtpd_tls_chain_files accepts post-quantum certificate chains in current releases, and whether signature algorithm choice is left entirely to OpenSSL.

TLS README

Roadmap beyond the 3.11 notes

The 3.11 release notes record a post-quantum cryptography support entry, and the 2025-10-18 postfix-devel reply proposed relying on OpenSSL defaults instead of explicit curve lists. The sources opened do not describe a roadmap for further post-quantum features after 3.11. Ask the maintainers whether they plan to deprecate explicit curve settings, and what timeline, if any, governs that change. Ask the packager whether the same roadmap applies to the build they ship.

Postfix-devel thread

Behavior of the 3.5 and 3.6 lines

The 3.10 and 3.11 release notes describe the post-quantum changes, and the postconf text names fine-grained control for Postfix 3.6.17 and later. The sources opened do not say how the 3.5 and 3.6 lines behave with OpenSSL 3.5 or later, including whether the default group list changes or whether the explicit-empty configuration applies. Ask the maintainers or your distribution packager whether backported releases in those lines carry the same post-quantum-related defaults, and test the exact build before relying on it.

3.11 release notes

What can break when you change Postfix's TLS group settings

Changing the TLS group settings in Postfix can break mail delivery with peers that never complained before, so treat the change as a test plan, not a config edit. The main hazard is the size of the TLS Client Hello. The postconf source notes that the default for tls_eecdh_auto_curves, when Postfix is built against OpenSSL 3.5 or later, was adjusted so the hybrid X25519MLKEM768 key share is sent only when the server asks for it. The reason is interoperability: some SMTP servers and network equipment mishandle a hello larger than one Ethernet TCP segment. If you add that group yourself, the hello grows, and a peer or firewall that cannot reassemble it can stall or drop the connection. Postfix 3.11 release notes describe the same equipment problem behind a change to the default. Confirm the behavior with your own peers and any inline inspection devices before you rely on it.

The second risk is that the settings do not all work the same way. Postfix 3.10 allows tls_eecdh_auto_curves and tls_ffdhe_auto_groups to be set to an empty value. When both are empty, group selection moves into the OpenSSL configuration, which is the route the postconf text gives for fine-grained control. That move changes what Postfix offers, and it also means a configuration file outside the main.cf you are editing now controls the result. The postconf text applies this guidance to Postfix 3.6.17, 3.7.13, 3.8.8, 3.9.2 and later, so check your exact release. The third risk is silent fallback. If a group setting or OpenSSL configuration is left as it was, the server can keep offering classical groups while you believe post-quantum groups are active. Verify the negotiated group in a handshake capture or test client rather than trusting the file.

Test against the peers your server actually exchanges mail with, not against a generic SMTP client. Pick a representative set of inbound and outbound partners, including any that use gateways or inspection appliances, and check that TLS still completes with both opportunistic and mandatory settings. Keep the previous configuration ready to restore, and do not change the server and client sides at once. Ask your partners and your network team which devices sit on the path, since a successful test from your lab does not prove that a partner's appliance accepts a larger hello. Record which group was negotiated with each peer so the result can be reviewed later.

Questions administrators ask about enabling post-quantum settings in Postfix

Is Postfix quantum safe once I enable these settings?

No source supports that conclusion. Postfix uses OpenSSL for all TLS, so post-quantum behavior comes from the Postfix version together with the OpenSSL version it is built and run against, which the sources list as OpenSSL 3.5 or later. Postfix 3.10 added support for OpenSSL 3.5 post-quantum cryptography as a forward-compatibility change, and Postfix 3.11 changed the tls_eecdh_auto_curves default so that the hybrid X25519MLKEM768 key share is generated only when the server requests it. Those settings affect key exchange only. Certificates and signatures are a separate question, and the TLS_README says post-quantum certificates via SNI will matter once certificate authorities issue them. Confirm the exact coverage of your build with Postfix and your OpenSSL vendor.

Which Postfix version do I need for post-quantum settings?

The sources tie the post-quantum changes to Postfix 3.10 and 3.11. Postfix 3.10 added support for OpenSSL 3.5 post-quantum cryptography, and the 3.11 release notes list a "Post-quantum cryptography support" entry dated 20251102. The current stable release in the sources is Postfix 3.11.5, with legacy releases 3.10.12, 3.9.13, 3.8.19, 3.7.21, 3.6.19 and 3.5.26 also published. The sources do not state which legacy release gets which post-quantum behavior, and the 3.11.5 announcement carries no stated date. Check the release notes for the branch you run and confirm the backport status with your packager before you plan a change.

Does enabling post-quantum settings in Postfix cost extra or need a license?

The sources describe Postfix as open source software and name no separate editions, so the sources do not indicate a license fee for these settings. Your costs come from the work around the software: upgrading to a version with the relevant behavior, building or obtaining Postfix against an OpenSSL 3.5 or later library, testing the relays you talk to, and any packager or support contract you hold. Those costs recur only if you keep a support agreement. Ask your packager or distributor whether their build includes OpenSSL 3.5 or later, what the change costs in their support terms, and whether they charge for it.

What breaks when I turn on post-quantum key exchange in Postfix?

The main known risk is interoperability with network equipment and SMTP servers. The postconf text says the default is adjusted so that the hybrid key share is generated only when requested, to avoid problems with SMTP servers that cannot handle the resulting large TLS Client Hello. The 3.11 notes say equipment that mishandles TLS hello messages larger than one Ethernet TCP segment can fail, and a postfix-devel reply from Wietse Venema, dated 2025-10-18, rejected adding X25519MLKEM768 to the explicit curve list as a maintenance burden. Test with the relays and gateways your mail passes through, and keep a fallback path for peers that fail the handshake. Confirm how your version handles that fallback before you change tls_eecdh_auto_curves or tls_ffdhe_auto_groups.

What should I ask Postfix or my packager before enabling this?

Ask a short, specific list, and record the answers with the version numbers. Ask which Postfix version and which OpenSSL version your build uses, and whether the build targets OpenSSL 3.5 or later. Ask whether tls_eecdh_auto_curves and tls_ffdhe_auto_groups are set to empty values in your configuration, so that group selection runs through OpenSSL configuration as the postconf text describes for Postfix 3.6.17, 3.7.13, 3.8.8, 3.9.2 and later. Ask whether certificate and signature support is planned for your build, since the sources say that depends on certificate authorities. Ask what the packager will support if a peer rejects the handshake.

Can my team enable these settings ourselves, or do we need outside help?

Your team can make the change if it has someone who runs Postfix, manages OpenSSL, and can test mail flow with peers. The steps are a version check, a build or package check for OpenSSL 3.5 or later, a review of the cipher and group settings, and a test with the relays and gateways you exchange mail with. The part that needs care is the interop test, because the sources show that large TLS hello messages can fail on some equipment. Outside help makes sense if no one on staff can run that test, or if you need a formal change record for a regulated environment. DeployOpen plans, implements, tests and documents self-hosted mail infrastructure in the client's environment, and it can run that interoperability test as a fixed-scope engagement with written deliverables.

How DeployOpen works on this

DeployOpen starts by confirming which Postfix version and which OpenSSL version your server runs, since post-quantum behavior depends on both. We then scope the TLS settings, certificate files and relay paths that need review, and deliver the configuration work as a fixed-scope engagement with written deliverables.

How we scope

  • We record the Postfix version, the OpenSSL version it is built against, and every host that sends or receives mail with TLS.
  • We list the tls_eecdh_auto_curves and tls_ffdhe_auto_groups settings in use, and whether either has been left empty for OpenSSL-controlled selection.
  • The written scope names which relays, DANE domains and certificate chains are covered, and which are excluded, before any change is made.

How we build

  • We test any change to the key-share groups against your real SMTP peers first, since large TLS Client Hello messages can break some network equipment.
  • We configure smtpd_tls_chain_files with the private key before its certificate chain, and check that the server key is unencrypted as Postfix requires.
  • We validate the change with a test relay and review the results against the postconf output for your exact Postfix release.

How we hand over

  • You receive the final postconf settings, the OpenSSL configuration file used for group selection, and a record of each value changed.
  • The handover document states which Postfix and OpenSSL versions the configuration was verified on, so later upgrades can be checked against it.
  • We walk your administrators through the rollback steps for each parameter so the previous working configuration can be restored quickly.

How we support

  • Ongoing support is available as a retainer for reviewing Postfix release notes when a new version changes TLS defaults.
  • Support covers re-testing after OpenSSL upgrades, since the post-quantum group defaults depend on the OpenSSL build Postfix uses.
  • Upgrades, configuration reviews and retesting can be scheduled as part of the retainer, with the scope agreed in writing first.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.