TLSMGR(8postfix)
π TLSMGR β the Postfix TLS session cache + PRNG manager π
okay so bestie, this page is tlsmgr(8postfix) from the Postfix manuals, and it's literally the backstage crew keeping your TLS sessions and your random numbers cute and functional. let's get into it β¨
πΈ SYNOPSIS πΈ
tlsmgr [generic Postfix daemon options]
π¦ DESCRIPTION π¦
so tlsmgr(8) manages the Postfix TLS session caches. she stores and retrieves cache entries whenever smtpd(8) and smtp(8) processes ask for them, and periodically she goes through and removes entries that have expired. no hoarding allowed π
she also manages the PRNG (pseudo random number generator) pool. she answers queries from the smtpd(8) and smtp(8) processes so they can seed their own internal PRNG pools. it's giving generous queen behavior, fr fr.
the tlsmgr(8)'s PRNG pool gets initially seeded from an external source (EGD, /dev/urandom, or a regular file). it's updated at configurable pseudo-random intervals with data from the external source. it's also updated periodically with data from TLS session cache entries and with the time of day, and it gets updated with the time of day whenever a process requests tlsmgr(8) service. busy busy busy β¨
the tlsmgr(8) saves the PRNG state to an exchange file periodically and when the process terminates, and reads the exchange file when initializing its PRNG. so she always remembers where she left off, iconic π
π SECURITY π
the tlsmgr(8) is not security-sensitive. the code that maintains the external and internal PRNG pools does not "trust" the data that it manipulates, and the code that maintains the TLS session cache does not touch the contents of the cached entries β except for seeding its internal PRNG pool. so like, she minds her own business π«Ά
the tlsmgr(8) can be run chrooted and with reduced privileges. at process startup it connects to the entropy source and exchange file, and creates or truncates the optional TLS session cache files.
with Postfix version 2.5 and later, the tlsmgr(8) no longer uses root privileges when opening cache files. these files should now be stored under the Postfix-owned data_directory. as a migration aid, an attempt to open a cache file under a non-Postfix directory is redirected to the Postfix-owned data_directory, and a warning is logged. the vibes are: glow up, move your files π
π©Ί DIAGNOSTICS π©Ί
problems and transactions are logged to syslogd(8) or postlogd(8). she's not secretive, she journals πΈ
π BUGS π
there is no automatic means to limit the number of entries in the TLS session caches and/or the size of the TLS cache files. so they can just... grow. no cap. watch them π
βοΈ CONFIGURATION PARAMETERS βοΈ
changes to main.cf are not picked up automatically, because tlsmgr(8) is a persistent process. use the command postfix reload after a configuration change. that's the whole move, bestie.
the text below provides only a parameter summary. see postconf(5) for more details including examples.
π TLS SESSION CACHE π
lmtp_tls_loglevel(0) β the LMTP-specific version of thesmtp_tls_loglevelconfiguration parameter.lmtp_tls_session_cache_database(empty) β the LMTP-specific version of thesmtp_tls_session_cache_databaseconfiguration parameter.lmtp_tls_session_cache_timeout(3600s) β the LMTP-specific version of thesmtp_tls_session_cache_timeoutconfiguration parameter.smtp_tls_loglevel(0) β enable additional Postfix SMTP client logging of TLS activity.smtp_tls_session_cache_database(empty) β name of the file containing the optional Postfix SMTP client TLS session cache.smtp_tls_session_cache_timeout(3600s) β the expiration time of Postfix SMTP client TLS session cache information.smtpd_tls_loglevel(0) β enable additional Postfix SMTP server logging of TLS activity.smtpd_tls_session_cache_database(empty) β name of the file containing the optional Postfix SMTP server TLS session cache.smtpd_tls_session_cache_timeout(3600s) β the expiration time of Postfix SMTP server TLS session cache information.
π² PSEUDO RANDOM NUMBER GENERATOR π²
tls_random_source(see 'postconf -d' output) β the external entropy source for the in-memorytlsmgr(8)pseudo random number generator (PRNG) pool.tls_random_bytes(32) β the number of bytes thattlsmgr(8)reads from$tls_random_sourcewhen (re)seeding the in-memory pseudo random number generator (PRNG) pool.tls_random_exchange_name(see 'postconf -d' output) β name of the pseudo random number generator (PRNG) state file that is maintained bytlsmgr(8).tls_random_prng_update_period(3600s) β the time between attempts bytlsmgr(8)to save the state of the pseudo random number generator (PRNG) to the file specified with$tls_random_exchange_name.tls_random_reseed_period(3600s) β the maximal time between attempts bytlsmgr(8)to re-seed the in-memory pseudo random number generator (PRNG) pool from external sources.
π§ MISCELLANEOUS CONTROLS π§
config_directory(see 'postconf -d' output) β the default location of the Postfixmain.cfandmaster.cfconfiguration files.data_directory(see 'postconf -d' output) β the directory with Postfix-writable data files (for example: caches, pseudo-random numbers).daemon_timeout(18000s) β how much time a Postfix daemon process may take to handle a request before it is terminated by a built-in watchdog timer.process_id(read-only) β the process ID of a Postfix command or daemon process.process_name(read-only) β the process name of a Postfix command or daemon process.syslog_facility(mail) β the syslog facility of Postfix logging.syslog_name(see 'postconf -d' output) β a prefix that is prepended to the process name in syslog records, so that, for example,"smtpd"becomes"prefix/smtpd".
available in Postfix 3.3 and later:
service_name(read-only) β themaster.cfservice name of a Postfix daemon process.
π SEE ALSO π
smtp(8), Postfix SMTP clientsmtpd(8), Postfix SMTP serverpostconf(5), configuration parametersmaster(5), generic daemon optionsmaster(8), process managerpostlogd(8), Postfix loggingsyslogd(8), system logging
π README FILES π
use "postconf readme_directory" or "postconf html_directory" to locate this information.
TLS_README, Postfix TLS configuration and operation
π LICENSE π
the Secure Mailer license must be distributed with this software. periodt.
π°οΈ HISTORY π°οΈ
this service was introduced with Postfix version 2.2. a legend from day one π
π AUTHOR(S) π
Lutz Jaenicke BTU Cottbus Allgemeine Elektrotechnik Universitaetsplatz 3-4 D-03044 Cottbus, Germany
adapted by:
Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA
and that's the whole page bestie π this was TLSMGR(8postfix) β the Postfix manual page for the TLS session cache and PRNG manager β go forth and cache responsibly, mwah πβ¨
π¦ where this page comes from
- debian bookworm: postfix 3.7.11-0+deb12u1
- ubuntu jammy: postfix 3.6.4-1ubuntu1
- ubuntu jammy: postfix 3.6.4-1ubuntu1.4
- ubuntu noble: postfix 3.8.6-1build2
- ubuntu noble: postfix 3.8.6-1ubuntu0.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms