OpenSSL in the Postfix MTA
summary
Postfix embeds OpenSSL across a 166k‑line codebase with 12k LOC TLS-related, implements ticket-based session resumption with key rollover and a cross‑process external session cache, parses atomic multi‑chain PEM blobs for SNI key selection, and supports policies like opportunistic DANE ("dane"), fingerprint, encrypt, and may. DANE code originates in Postfix and is upstreamed to OpenSSL, raw public keys are used where certificates are unnecessary, and these features run in production with long‑term operational testing.
AI-written summary · about
chapters (13)
- 0:00Introduction and slides
- 1:49Background on SMTP and TLS
- 6:05Postfix history and TLS evolution
- 13:23TLS in Postfix architecture
- 18:02OpenSSL initialization in Postfix
- 23:41SNI and certificate chains
- 29:50Session tickets and key rollover
- 33:01Raw public keys and key exchange
- 37:37External session cache
- 40:05Server TLS connection setup
- 43:36Post-handshake details
- 45:00Client TLS policies and Dane
- 51:59Q&A and conclusion
