MASTER(8postfix)
π master β the Postfix master process π
okay so bestie, welcome to MASTER(8postfix) β yes that's the manual section, we're in the 8postfix zone, and this is literally the page about the mom of all Postfix daemons. she runs the whole house. let's get into it π«Ά
β¨ NAME β¨
master β the Postfix master process. that's her. that's the whole name. iconic.
πΈ SYNOPSIS πΈ
master [-Dditvw] [-c config_dir] [-e exit_time]
look at those flags, they're giving very much "I contain multitudes" π
π¦ DESCRIPTION π¦
the master(8) daemon is the resident process that runs Postfix daemons on demand: daemons to send or receive messages via the network, daemons to deliver mail locally, etc. basically she's the group chat admin who spawns the right person the second someone needs them. these daemons get created on demand, up to a configurable maximum number per service. no cap.
Postfix daemons terminate voluntarily, either after being idle for a configurable amount of time, or after having serviced a configurable number of requests. they just log off. respectfully. π§
Exceptions to this rule (the ones who never leave the party) are:
- the resident queue manager
- the address verification server
- the TLS session cache
- the pseudo-random number server
the behavior of the master(8) daemon is controlled by the master.cf configuration file, as described in master(5). that's her whole personality file, fr fr.
Options:
-cconfig_dir β read themain.cfandmaster.cfconfiguration files in the named directory instead of the default configuration directory. this also overrides the configuration files for other Postfix daemon processes. she's setting the vibe for everyone. π-Dβ after initialization, run a debugger on the master process. the debugging command is specified with thedebugger_commandin themain.cfglobal configuration file.-dβ do not redirect stdin, stdout or stderr to/dev/null, and do not discard the controlling terminal. this must be used for debugging only. π¨ debugging only bestie, I said what I said.-eexit_time β terminate the master process after exit_time seconds. child processes terminate at their convenience. (they'll wrap up, they're not rude)-iβ enable init mode: do not become a session or process group leader; and similar to-s, do not redirect stdout to/dev/null, so that"maillog_file = /dev/stdout"works. this mode is allowed only if the process ID equals 1.
this feature is available in Postfix 3.3 and later.
-sβ do not redirect stdout to/dev/null, so that"maillog_file = /dev/stdout"works.
this feature is available in Postfix 3.4 and later.
-tβ test mode. return a zero exit status when themaster.pidlock file does not exist or when that file is not locked. this is evidence that themaster(8)daemon is not running. (she's not home π₯²)-vβ enable verbose logging for debugging purposes. this option is passed on to child processes. multiple-voptions make the software increasingly verbose. the way she just keeps talking π-wβ wait in a dummy foreground process, while the real master daemon initializes in a background process. the dummy foreground process returns a zero exit status only if the master daemon initialization is successful, and if it completes in a reasonable amount of time.
this feature is available in Postfix 2.10 and later.
π Signals π
SIGHUPβ upon receipt of a HUP signal (e.g., after"postfix reload"), the master process re-reads its configuration files. if a service has been removed from themaster.cffile, its running processes are terminated immediately. otherwise, running processes are allowed to terminate as soon as is convenient, so that changes in configuration settings affect only new service requests. glow-up without the drama β¨SIGTERMβ upon receipt of a TERM signal (e.g., after"postfix abort"), the master process passes the signal on to its child processes and terminates. this is useful for an emergency shutdown. normally one would terminate only the master ("postfix stop") and allow running processes to finish what they are doing. so like,postfix abortis the nuclear option,postfix stopis the polite option. iykyk.
π DIAGNOSTICS π
problems are reported to syslogd(8) or postlogd(8). the exit status is non-zero in case of problems, including problems while initializing as a master daemon process in the background. so if something's wrong, she will tell on herself. π
π ENVIRONMENT π
MAIL_DEBUGβ after initialization, start a debugger as specified with thedebugger_commandconfiguration parameter in themain.cfconfiguration file.MAIL_CONFIGβ directory with Postfix configuration files.
π CONFIGURATION PARAMETERS π
unlike most Postfix daemon processes, the master(8) server does not automatically pick up changes to main.cf. changes to master.cf are never picked up automatically. use the "postfix reload" command after a configuration change. she doesn't refresh the feed on her own, you gotta tell her bestie π’
π₯ RESOURCE AND RATE CONTROLS π₯
default_process_limit(100) β the default maximal number of Postfix child processes that provide a given service.max_idle(100s) β the maximum amount of time that an idle Postfix daemon process waits for an incoming connection before terminating voluntarily.max_use(100) β the maximal number of incoming connections that a Postfix daemon process will service before terminating voluntarily.service_throttle_time(60s) β how long the Postfixmaster(8)waits before forking a server that appears to be malfunctioning. (she's putting them in time-out π)
Available in Postfix version 2.6 and later:
master_service_disable(empty) β selectively disablemaster(8)listener ports by service type or by service name and type.
β MISCELLANEOUS CONTROLS β
config_directory(seepostconf -doutput) β the default location of the Postfixmain.cfandmaster.cfconfiguration files.daemon_directory(seepostconf -doutput) β the directory with Postfix support programs and daemon programs.debugger_command(empty) β the external command to execute when a Postfix daemon program is invoked with the-Doption.inet_interfaces(all) β the network interface addresses that this mail system receives mail on.inet_protocols(seepostconf -d output) β the Internet protocols Postfix will attempt to use when making or accepting connections.import_environment(seepostconf -doutput) β the list of environment parameters that a privileged Postfix process will import from a non-Postfix parent process, or name=value environment overrides.mail_owner(postfix) β the UNIX system account that owns the Postfix queue and most Postfix daemon processes.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.queue_directory(seepostconf -doutput) β the location of the Postfix top-level queue directory.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.
Available in Postfix 3.6 and later:
known_tcp_ports(lmtp=24, smtp=25, smtps=submissions=465, submission=587) β optional setting that avoids lookups in theservices(5)database.
π FILES π
to expand the directory names below into their actual values, use the command "postconf config_directory" etc.
$config_directory/main.cf, global configuration file.$config_directory/master.cf, master server configuration file.$queue_directory/pid/master.pid, master lock file.$data_directory/master.lock, master lock file.
π SEE ALSO π
qmgr(8), queue managerverify(8), address verificationmaster(5),master.cfconfiguration file syntaxpostconf(5),main.cfconfiguration file syntaxpostlogd(8), Postfix loggingsyslogd(8), system logging
π«Ά LICENSE π«Ά
the Secure Mailer license must be distributed with this software. periodt.
π AUTHOR(S) π
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 π shoutout to the source tag MASTER(8postfix) and the version/date stamped at the bottom β same energy, same page, we just made it cute. go forth and postfix reload responsibly π
β¨
π¦ 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