Which Postfix functions depend on RSA and elliptic-curve keys

Postfix uses public-key algorithms through OpenSSL for SMTP TLS key exchange, server and client certificates, and DANE matching. The sources listed on this page cover which settings control each, and which post-quantum options exist in Postfix 3.10 and 3.11 built against OpenSSL 3.5 or later.

On this page

Which Postfix functions depend on RSA and elliptic-curve keys today

Postfix's TLS functions depend on public-key algorithms through the OpenSSL library. These are SMTP key exchange, the server certificate and any optional client certificates, and DANE certificate matching. The algorithms themselves are not chosen by Postfix directly. OpenSSL makes that choice, shaped by two parameters: tls_eecdh_auto_curves, which lists elliptic curves, and tls_ffdhe_auto_groups, which lists FFDHE groups. Postfix's own text confirms that enabling TLS brings in a very large body of OpenSSL code, so the OpenSSL version matters as much as the Postfix version. Post-quantum behavior starts with OpenSSL 3.5 or later. The sources reviewed for this page name Postfix 3.11.5 as the current stable release, with legacy lines 3.10.12, 3.9.13, 3.8.19, 3.7.21, 3.6.19 and 3.5.26 still announced. Postfix is open source, and the sources list no separate editions, so the version and OpenSSL build on each mail server are what to record.

Security leads should treat this as an inventory task for every mail server that accepts or sends TLS. Start by recording the Postfix version and the OpenSSL version each host actually runs, since a Postfix build linked against an older OpenSSL will not offer the post-quantum groups. Then record whether tls_eecdh_auto_curves and tls_ffdhe_auto_groups are at their defaults or have been set explicitly. Explicit settings override the defaults that OpenSSL would otherwise manage. The Postfix configuration text says that for fine-grained control an administrator sets both parameters to empty so that selection runs through OpenSSL configuration, and it names the minimum Postfix versions where this applies. Also record the certificate type and key algorithm in smtpd_tls_chain_files, and whether smtp_tls_security_level is set to dane or dane-only. Those DANE settings depend on TLSA records published under DNSSEC, so the DNS team should be part of the review. Confirm each item with the Postfix documentation for the exact release in use.

Postfix public-key functions by version and component

This table lists each Postfix function that relies on public-key cryptography, the parameter that controls it, the Postfix version line where the sources describe it, and the OpenSSL version it depends on. Read each row as a question to confirm in your own build, since the sources do not give a release date for the 3.10 and 3.11 entries beyond their listed dates. The main takeaway is that the post-quantum behavior of each function is set by both the Postfix and OpenSSL versions, not by Postfix alone.

FunctionControlling parameter and version lineOpenSSL dependencySource
TLS key exchange (elliptic curve and FFDHE groups)tls_eecdh_auto_curves and tls_ffdhe_auto_groups (FFDHE in 3.8 and later)Algorithm choice left to OpenSSL and its configurationPostfix postconf source; TLS_README
Server certificates and chain filessmtpd_tls_chain_files, preferred since Postfix 3.4Certificate signatures handled by OpenSSL; ML-DSA SNI test needs 3.5 or laterPostfix TLS_README
Client certificatessmtp_tls_chain_files and related client TLS settingsSignatures handled by OpenSSL; confirm exact parameters in your versionPostfix TLS_README
DANE certificate matchingsmtp_tls_security_level set to dane or dane-only; relies on DNSSEC-published TLSA recordsCertificate matching performed through OpenSSLPostfix TLS_README
Fingerprint digestssmtp_tls_fingerprint_digest and smtpd_tls_fingerprint_digest; default sha256 from 3.6, md5 in 3.5 and earlierDigest handled by OpenSSL; not a public-key operation by itselfPostfix postconf source
Mandatory cipher gradesmtpd_tls_mandatory_ciphers, default medium for the SMTP server; tls_high_cipherlist and tls_medium_cipherlistCipher lists passed to OpenSSL; the postconf text discourages changing tls_high_cipherlistPostfix postconf source
Post-quantum key exchange (X25519MLKEM768)tls_eecdh_auto_curves default with OpenSSL 3.5 or later; Postfix 3.10 added supportRequires OpenSSL 3.5 or later; default delays the hybrid key share until requestedPostfix RELEASE_NOTES-3.10; RELEASE_NOTES-3.11

Which Postfix components use public-key algorithms

Postfix relies on OpenSSL for every place a public key is used, from TLS key exchange to certificate signatures and DANE matching. The six components below separate what each public key does, which Postfix parameter or OpenSSL default selects its algorithm, and what a security lead should confirm for their build.

SMTP server key exchange

When a remote mail server connects to Postfix with opportunistic or mandatory TLS, the handshake uses elliptic-curve or FFDHE groups to agree on session keys. Postfix passes its preferences through tls_eecdh_auto_curves and tls_ffdhe_auto_groups, and OpenSSL decides the final choice. Confirm both values with postconf -d on your build, since a non-empty list pins the groups Postfix will offer.

Postfix postconf source

SMTP client key exchange

When Postfix acts as a client and delivers mail to another server, it negotiates key exchange in the same way, governed by the smtp_tls_* parameters and the same curve and group lists. The mandatory-TLS variant smtp_tls_mandatory_protocols has defaulted to >=TLSv1 since Postfix 3.6. Check your outbound relay settings, since the client side of a connection can differ from the inbound server configuration.

Postfix TLS_README

Server certificate chains

The Postfix SMTP server presents an RSA or elliptic-curve certificate, and the signature on that certificate depends on the algorithm of the issuing CA. Since Postfix 3.4, smtpd_tls_chain_files is the preferred setting, with the private key first and the certificate chain after it in one file. The TLS_README notes the server private key must not be encrypted, and server certificates are not optional in TLS 1.3, so confirm which key type your CA issues.

Postfix TLS_README

Optional client certificates and SNI

When client certificates are requested, the client signs during the handshake with its own private key, and Postfix verifies that signature against the trusted CA set. Server Name Indication lets one listener present different certificates per hostname. The TLS_README says post-quantum certificates via SNI will matter once CAs issue them, and that its ML-DSA test needs OpenSSL 3.5 or later. Confirm which certificate types each hostname uses before changing any SNI map.

Postfix TLS_README

DANE TLSA matching

With smtp_tls_security_level set to dane or dane-only, Postfix checks the remote server's certificate against TLSA records published under DNSSEC. The match uses a digest set by the fingerprint digest parameters, which default to sha256 from Postfix 3.6 onward and to md5 in 3.5 and earlier. Under dane-only, delivery is deferred when usable TLSA records are missing or verification fails, so confirm the TLSA records your partners publish before enforcing it.

Postfix TLS_README

SASL authentication protected by TLS

Postfix's TLS support protects SMTP data and SASL logins, and the server can be configured to announce and accept AUTH only after TLS is active. The public-key step here is the TLS handshake that carries the password exchange, not a separate SASL key. Check that the AUTH mechanisms your clients use are only offered over an encrypted session, and treat any plaintext AUTH path as a separate finding.

Postfix TLS_README

How Postfix selects elliptic-curve and FFDHE groups

Postfix does not hard-code which key exchange groups its TLS connections offer. Two parameters hold the prioritized lists: tls_eecdh_auto_curves for elliptic curves and tls_ffdhe_auto_groups for FFDHE groups, which Postfix 3.8 and later support. Both apply to the SMTP client and server. Before you assess your exposure, run postconf -d on each host and record the values it reports, because the default for tls_eecdh_auto_curves changes when Postfix is built against OpenSSL 3.5 or later. In those builds the default is a minor adjustment of the OpenSSL default that delays the hybrid X25519MLKEM768 key share until the server asks for it. The postconf text gives the reason: some SMTP servers cannot handle the larger TLS Client Hello that results. Confirm the built-against OpenSSL version on each host as well as the Postfix version, because the output depends on both.

If you need finer control, Postfix 3.10 allows both tls_eecdh_auto_curves and tls_ffdhe_auto_groups to be set to an empty value. When both are empty, group selection moves to the OpenSSL configuration, which you point to with tls_config_file. The postconf text describes this approach for Postfix 3.6.17, 3.7.13, 3.8.8, 3.9.2 and later, and it gives a tls_config_file example. Treat that move as a configuration change to test, not a switch to flip. Check that the OpenSSL file you load sets the groups you intend, and that peers you must reach can still complete a handshake with them. The Postfix 3.11 release notes also describe a change to the tls_eecdh_auto_curves default under OpenSSL 3.5 and later, made to avoid problems with network equipment that mishandles TLS hello messages larger than one Ethernet TCP segment. Confirm whether your version includes that change.

How the answer changes by Postfix version line and OpenSSL build

This is the situation where the most post-quantum behavior is visible. Postfix 3.11 carries a feature entry dated 20251102 titled "Post-quantum cryptography support", which changes the default for tls_eecdh_auto_curves when Postfix 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 change exists because some network equipment mishandles TLS Client Hello messages larger than one Ethernet TCP segment.

  • Key exchange default: The hybrid X25519MLKEM768 group is offered only after the server asks for it, under the 3.11 default for tls_eecdh_auto_curves.
  • Signature test: The ML-DSA SNI test can run, because ML-DSA requires OpenSSL 3.5 or later.
  • Certificates: The sources say post-quantum certificates via SNI become relevant once certificate authorities issue them, so this build is ready for that step but does not issue certificates.
  • Explicit control: Setting tls_eecdh_auto_curves and, where available, tls_ffdhe_auto_groups to empty hands group selection to OpenSSL configuration.
  • Maintainer position: On the postfix-devel list on 2025-10-18, Wietse Venema argued against adding X25519MLKEM768 to the explicit default list and proposed relying on OpenSSL defaults instead.

Confirm with postconf -d and openssl version on each host that the Postfix build and the linked OpenSSL both meet these conditions, because a Postfix binary can be built against an older library than the one installed on the system.

Where public keys appear in a Postfix TLS handshake

The diagram follows an SMTP STARTTLS exchange from the sending Postfix (smtp client) to the receiving Postfix (smtpd server). The key-share group is negotiated from tls_eecdh_auto_curves and tls_ffdhe_auto_groups, and the server presents its certificate chain loaded through smtpd_tls_chain_files. A client certificate is optional. When smtp_tls_security_level is set to dane or dane-only, the sending side also checks the server certificate against a TLSA record published under DNSSEC. Check each of these settings on both ends, since each side negotiates and verifies independently.

Simplified illustration of the public-key steps in an SMTP STARTTLS exchange.

Steps to inventory Postfix public-key dependencies

This sequence records the Postfix and OpenSSL versions in use, captures the TLS defaults and settings that control key exchange, ciphers and certificates, and confirms how each relay is configured. The output is a dated, per-host inventory that shows where RSA and elliptic-curve keys are used and which settings a later upgrade would need to change.

  1. Record the Postfix and OpenSSL versions

    Run postconf mail_version on each mail host to record the Postfix release, then identify the OpenSSL library that Postfix is linked against, for example with ldd on the smtpd binary or the distribution's package query. Record both versions with the host name and date. Confirm the OpenSSL version is 3.5 or later before relying on any post-quantum behavior described in the Postfix release notes, since earlier OpenSSL versions do not provide the ML-DSA algorithm or the hybrid key-share discussed in Postfix 3.10 and 3.11. The step is done when every host has a recorded Postfix release and linked OpenSSL version.

  2. Capture the default TLS curve and group settings

    Run postconf -d and save the output, then note the defaults for tls_eecdh_auto_curves and tls_ffdhe_auto_groups. Compare these with the values in postconf -n, which shows only the settings changed on the host. The tls_eecdh_auto_curves default depends on whether Postfix was compiled against OpenSSL 3.5 or later, so record the compiled OpenSSL version alongside the output. The step is done when the defaults and any local overrides for both parameters are written down per host.

  3. Record cipher lists and mandatory cipher grade

    From the same postconf -d and postconf -n output, record tls_medium_cipherlist, tls_high_cipherlist and smtpd_tls_mandatory_ciphers. The smtpd_tls_mandatory_ciphers default is medium grade, so note whether any host overrides it. Record the protocol settings smtpd_tls_protocols, smtp_tls_protocols and the mandatory-TLS variants, since their defaults changed with Postfix 3.6. Do not change tls_high_cipherlist as part of the inventory, because the postconf text strongly advises against it. The step is done when each host has a written list of cipher and protocol values, marked as default or overridden.

  4. List server certificate chain and client certificate files

    Run postconf smtpd_tls_chain_files, which is the preferred parameter for server keys and certificates since Postfix 3.4. Each listed file should start with the private key followed by its certificate chain. Check the file permissions and confirm the key is not encrypted, as the TLS_README requires. Separately, run postconf smtpd_tls_cert_file, smtpd_tls_key_file and any client certificate parameters such as smtp_tls_cert_file to find older or client-side paths. Record each path, the certificate subject and expiry date, and the key algorithm from openssl x509 -noout -text or the equivalent. The step is done when every server and client certificate file on the host is listed with its algorithm.

  5. Record the outbound TLS security level per relay

    Run postconf smtp_tls_security_level and check each transport map and relay-specific override, since per-destination settings in smtp_tls_policy_maps can differ from the global value. Note which relays use none, may, encrypt, dane, dane-only or another level. Relays set to may or encrypt accept unverified or opportunistic TLS, while dane and dane-only rely on DNSSEC-signed TLSA records. Record each relay name, its effective level and where the setting is defined. The step is done when a table of relays and their effective security levels exists for each host.

  6. Check whether DANE is in use

    Identify any relay or destination using smtp_tls_security_level set to dane or dane-only, then confirm that the destination domain publishes TLSA records under DNSSEC, for example by querying the TLSA record for the MX host with a DNSSEC-validating resolver. Record which domains depend on DANE and whether dane-only deliveries have been deferred because TLSA records were missing or certificate verification failed, using the mail log. Note that DANE matching depends on the certificates and keys the remote side publishes, so the TLSA record set is part of the public-key inventory. The step is done when each DANE-dependent destination is listed with a confirmed TLSA lookup result.

  7. Confirm the inventory against the vendor documents

    Check each recorded setting against the Postfix TLS_README and the postconf source for the release shown in the first step. Confirm which settings your release documents as affecting key exchange, certificates and signatures, and mark any value that the documents do not cover so it can be raised with the vendor. Dated notes from the Postfix-devel discussion on the default curve list should be cited as discussion, not as a documented change. The step is done when the inventory has a source reference for each dependency and a list of open questions for the vendor.

What the sources do not establish about Postfix

The sources opened for this page describe how Postfix handles key exchange, certificates and DANE, but they stop short of several points an administrator needs before deciding what to deploy. The four cards below name each gap, explain why it affects the public-key dependencies in your deployment, and give the question to put to the Postfix maintainers or to your distribution.

Whether an ML-KEM-only group exists

The sources confirm that Postfix can be built against OpenSSL 3.5 or later and that its default group list includes the hybrid X25519MLKEM768 key share. They do not say whether Postfix offers a group that uses ML-KEM alone, without a classical curve alongside it. Hybrid and pure post-quantum key exchange lead to different interoperability and risk profiles, so an inventory should not assume one from the other. Ask the Postfix maintainers whether an ML-KEM-only group is planned or supported, and check whether your OpenSSL build exposes that group through tls_config_file before writing it into a configuration.

postconf source

Which certificate authorities issue post-quantum certificates

The TLS_README says post-quantum certificates used through SNI will become relevant once certificate authorities issue them, and its ML-DSA SNI test needs OpenSSL 3.5 or later. The sources do not name any certificate authority that issues ML-DSA certificates today, nor do they say which profiles, validity periods or chain formats are offered. Certificate choice drives what smtpd_tls_chain_files must contain, so ask your certificate authority directly which post-quantum certificate products they issue, and confirm the chain they would deliver for the key types your mail server will present.

TLS_README

Whether a vendor roadmap date exists

The Postfix sources record a maintainer's position on how curve defaults should be handled, but they do not establish a dated roadmap for post-quantum support as a product commitment. The Postfix-devel reply of 2025-10-18 proposed deprecating explicit curve settings in favor of OpenSSL defaults, and the 3.11 release notes list post-quantum support as a feature entry, yet neither gives a release date for a future capability. Treat any planned release as unconfirmed, and ask the maintainers whether a published schedule exists for the next post-quantum change to Postfix.

Postfix-devel thread

How distribution packages set defaults

The Postfix postconf source gives upstream defaults, including the tls_eecdh_auto_curves value that depends on the OpenSSL version the binary was compiled against. Linux distributions package Postfix with their own builds, OpenSSL versions and default configuration files, so the defaults a server actually runs may differ from upstream. The sources do not say how any distribution sets these parameters. Before relying on a default, run postconf -d on the installed binary, and ask your distribution's packager which OpenSSL version the package is built against and whether it changes tls_eecdh_auto_curves, tls_ffdhe_auto_groups or the cipher lists.

Postfix 3.11 release notes

What can break when Postfix key exchange changes

The main operational risk in changing Postfix key exchange is interoperability, not cryptographic weakness. The postconf text for tls_eecdh_auto_curves says that when Postfix is built against OpenSSL 3.5 or later, the default adjusts the OpenSSL compiled-in default so that the hybrid X25519MLKEM768 key share is generated only when the server explicitly requests it. The stated reason is to avoid problems with SMTP servers that cannot handle the resulting large TLS Client Hello. The Postfix 3.11 release notes describe the same concern more precisely: some network equipment mishandles TLS hello messages larger than one Ethernet TCP segment. If you run Postfix 3.11 or later against OpenSSL 3.5 or later, confirm which relays, gateways, firewalls and inspection devices sit on your outbound path, and test delivery to the partners you depend on most. A failure here usually appears as a handshake that stalls or drops, so it can look like a network fault rather than a TLS change.

Two settings can keep classical groups in place without any visible change. Setting tls_eecdh_auto_curves and tls_ffdhe_auto_groups to an empty value hands group selection to the OpenSSL configuration, which is the route the postconf text recommends for fine-grained control. Postfix 3.10 allows both to be empty, and the postconf text says this applies to the 3.6.17, 3.7.13, 3.8.8 and 3.9.2 lines and later. Be aware that the group list then comes from your tls_config_file and the OpenSSL build, not from Postfix defaults, so a configuration review that reads only main.cf will miss it. Record the effective list, for example by checking the OpenSSL configuration that Postfix loads, rather than assuming the older Postfix defaults still apply.

The dane-only security level behaves differently from opportunistic TLS when the handshake or the records do not cooperate. Under smtp_tls_security_level = dane-only, Postfix defers delivery if usable TLSA records are missing or if certificate verification fails, so a group or certificate change that breaks verification can hold mail in the queue rather than fall back to plaintext. Review which destinations you deliver to under dane-only, and watch your deferred queue after any key exchange change. Confirm with your Postfix version's documentation how TLSA records interact with the chosen groups before you rely on DANE for partners that have not yet been tested.

Questions security leads ask about Postfix public-key dependencies

Is Postfix quantum safe?

The sources do not support calling Postfix quantum safe, and this page does not treat it as compliant or certified. What the sources support is narrower: Postfix uses public-key algorithms through OpenSSL for TLS key exchange, server and optional client certificates, and DANE matching. Postfix 3.10 added support for OpenSSL 3.5 post-quantum cryptography, and Postfix 3.11 changed the default curve list so the hybrid X25519MLKEM768 key share is only sent when the server asks for it. Post-quantum behavior therefore depends on the Postfix version and on the OpenSSL version it is built and run with. Confirm the exact groups and signature algorithms your build negotiates with your own tests.

Which Postfix version is needed for post-quantum key exchange?

The sources tie post-quantum support to two things: a Postfix release that includes the OpenSSL 3.5 handling, and an OpenSSL build of 3.5 or later. The Postfix 3.10 release notes record support for OpenSSL 3.5 post-quantum cryptography as a forward-compatibility change, and the Postfix 3.11 release notes record a related default change for OpenSSL 3.5 and later. The current stable release named in the sources is 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 listed alongside it. The sources do not say which older releases carry the same behavior, so confirm the release and OpenSSL version on each server with your distribution's package information.

Does enabling post-quantum support in Postfix cost extra or need a licence?

Postfix is open source software, and the sources do not list separate editions or licence tiers, so no product licence fee is indicated. Costs that do exist are operational: testing the change against your OpenSSL build, reviewing configuration, and handling any peer that fails on the larger TLS Client Hello. The sources do not give a price or effort figure for the upgrade. Ask your distribution or any commercial support provider to quote the OpenSSL upgrade, testing and rollout work in writing, and confirm with them whether any support contract attaches to your build.

What breaks when post-quantum key exchange is turned on in Postfix?

The main known problem is size. The postconf text says the default curve list avoids interoperability issues with SMTP servers that cannot handle a large TLS Client Hello, and the Postfix 3.11 release notes say the default was changed to avoid problems with network equipment that mishandles hello messages larger than one Ethernet TCP segment. Check these points before enabling:

  • Mail exchanges that your server talks to over TLS, including relays and partners, and whether any of them fail the handshake.
  • Firewalls, load balancers or inspection devices on the path that may drop or split large hellos.
  • Your tls_eecdh_auto_curves and tls_ffdhe_auto_groups settings, which override the defaults.
What should we ask the Postfix project before we plan a change?

Ask the Postfix project, or your distribution if it packages Postfix, for the decisions that the sources leave open. The 2025 postfix-devel thread shows the project's position: a proposal to add the hybrid X25519MLKEM768 group to the default curve list was rejected as a maintenance burden, and the maintainer proposed relying on OpenSSL defaults instead. Useful questions include:

  • Which Postfix releases and OpenSSL versions the project treats as supporting post-quantum groups.
  • Whether explicit curve settings will be deprecated and on what timeline.
  • How signature support for post-quantum certificates will be handled once certificate authorities issue them.
Can our team run the Postfix cryptography inventory without outside help?

Yes, a team that runs its own mail servers can do the inventory internally, because the work is reading configuration and reporting the results. Gather the Postfix version, the OpenSSL version it links against, and the values of the TLS parameters that matter here: smtpd_tls_chain_files, the TLS protocol and cipher settings, smtp_tls_security_level, tls_eecdh_auto_curves and tls_ffdhe_auto_groups. Run postconf -d to see the defaults your build uses. Record which relays and clients depend on DANE or client certificates. Outside help is useful when the inventory must feed an audit or a vendor-risk review, or when many servers must be checked. Confirm the scope and deliverables with any provider in writing before the work starts.

How DeployOpen helps with Postfix post-quantum readiness work

DeployOpen starts from the places where Postfix uses public-key cryptography in TLS, certificates and DANE, then sets out what the written scope covers. The work is limited to what your Postfix version and OpenSSL build can support, and each finding is tied to the settings that control it.

How we scope

  • Confirm the Postfix version and the OpenSSL version it is built and run with, since post-quantum behavior depends on both.
  • List the SMTP TLS, SASL and DANE functions in scope, with the parameters that control key exchange, certificates and ciphers.
  • Agree the scope in writing before work starts, as most engagements are fixed-scope.

How we build

  • Inventory the current values of tls_eecdh_auto_curves, tls_ffdhe_auto_groups and the cipher list parameters on each server.
  • Check how smtpd_tls_chain_files is set, including whether keys and certificate chains are stored together as the documentation recommends.
  • Test the TLS handshake and DANE behavior against your relays, and record which settings change the result.

How we hand over

  • Deliver a written inventory of each public-key dependency in your Postfix setup, with the version and setting it applies to.
  • Provide the configuration changes we made, along with a note on what remains set by OpenSSL defaults or by the vendor.
  • Document the tests run and the results, so your security and vendor-risk teams can review the evidence.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, which covers later Postfix and OpenSSL releases.
  • Re-test after each Postfix upgrade, since the release notes change defaults for post-quantum key shares in later versions.
  • Confirm open questions with the Postfix vendor, including the roadmap and any future post-quantum certificate handling, before relying on them.

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.