TLSMGR(8)
β¨ NAME β¨
okay so bestie, welcome to tlsmgr β the Postfix TLS session cache and PRNG manager π (it lives in the System Manager's Manual, section 8, daemon territory, iykyk)
π SYNOPSIS π
tlsmgr [generic Postfix daemon options]
π DESCRIPTION π
The tlsmgr(8) runs the Postfix TLS session caches. It stores and retrieves cache entries whenever smtpd(8) and smtp(8) processes ask for them, and it periodically yeets out the entries that have expired. housekeeping queen π
It also runs the PRNG (pseudo random number generator) pool. It answers queries from the smtpd(8) and smtp(8) processes so they can seed their own internal PRNG pools. sharing is caring fr fr π«Ά
The tlsmgr(8)'s PRNG pool gets initially seeded from an external source β that's EGD, /dev/urandom, or a regular file. Then it gets updated at configurable pseudo-random intervals with data from that external source. It also gets updated periodically with data from TLS session cache entries and with the time of day, and it gets updated with the time of day every single time a process requests tlsmgr(8) service. it's giving constantly-refreshed πΈ
And it saves the PRNG state to an exchange file periodically and when the process terminates, then reads the exchange file back when it's initializing its PRNG. save your work bestie πΎ
π 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. no snooping, just vibes β¨
The tlsmgr(8) can be run chrooted and with reduced privileges. At process startup it connects to the entropy source and the exchange file, and it 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. glow up π
π©Ί DIAGNOSTICS π©Ί
Problems and transactions are logged to syslogd(8) or postlogd(8). it will tell on you (lovingly) π
π 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 it will simply keep growing, no cap π
βοΈ CONFIGURATION PARAMETERS βοΈ
Changes tomain.cfare not picked up automatically, becausetlsmgr(8)is a persistent process. Use the command"postfix reload"after a configuration change. she does not check her notifications, you must ping her directly π²
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(seepostconf -doutput) β 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(seepostconf -doutput) β 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(seepostconf -doutput) β The default location of the Postfixmain.cfandmaster.cfconfiguration files.data_directory(seepostconf -doutput) β 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(seepostconf -doutput) β 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. read it, respect it π«‘
π°οΈ HISTORY π°οΈ
This service was introduced with Postfix version 2.2. a true OG π
π 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
okay bestie that's the whole thing, and yes I read every single line of the fine print so you don't have to π
this was tlsmgr(8) from the System Manager's Manual β go forth and manage those TLS session caches, you absolute icon π mwah π
π¦ where this page comes from
- alpine 3.22: postfix-doc 3.10.13-r0 Β· IPL-1.0 EPL-2.0
- alpine 3.23: postfix-doc 3.10.13-r0 Β· IPL-1.0 EPL-2.0
- alpine 3.24: postfix-doc 3.11.7-r0 Β· IPL-1.0 EPL-2.0
- arch rolling: postfix 3.11.7-1 Β· EPL-2.0 OR IPL-1.0 AND BSD-4-Clause-UC
- centos-stream 10: postfix 2:3.8.5-11.el10 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- centos-stream 9: postfix 2:3.5.25-3.el9 Β· (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
- debian trixie: postfix 3.10.13-0+deb13u1
- fedora 43: postfix 2:3.10.14-1.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 43: postfix 2:3.10.3-3.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.14-1.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.7-2.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- nixos 26.05: postfix 3.11.7
- nixpkgs unstable: postfix 3.11.7
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- ubuntu questing: postfix 3.10.2-1ubuntu2
- ubuntu questing: postfix 3.10.2-1ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2
- ubuntu resolute: postfix 3.10.6-4ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2.2
- ubuntu stonking: postfix 3.11.7-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms