/etc/postfix/master.cf: Unterschied zwischen den Versionen
Die Seite wurde neu angelegt: „{{DISPLAYTITLE:master.cf}} Kategorie:Postfix:Konfiguration {{DEFAULTSORT:master.cf}}“ |
K Textersetzung - „etc.“ durch „und weitere“ |
||
(32 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
'''master.cf''' - Postfix master process configuration file format | |||
[[Kategorie:Postfix: | == Beschreibung == | ||
{{ | ; Postfix wird durch eine kleine Anzahl von (meist) Client-Befehlen implementiert | ||
* von Benutzern aufgerufen | |||
; Postfix-Dienste werden durch Daemon-Prozesse implementiert | |||
* durch eine größere Anzahl von Diensten, die im Hintergrund laufen | |||
* laufen im Hintergrund und werden bei Bedarf durch den master(8)-Prozess gestartet | |||
; In der Konfigurationsdatei master.cf wird festgelegt | |||
* wie ein Client-Programm eine Verbindung zu einem Dienst herstellt | |||
* welches Daemon-Programm ausgeführt wird, wenn ein Dienst angefordert wird | |||
; Die meisten Daemon-Prozesse sind kurzlebig | |||
* beenden sich selbststängig, nachdem | |||
** max_use Clients bedient wurden | |||
** max_idle oder mehr Zeiteinheiten inaktivität abgelaufen sind | |||
; Alle hier angegebenen Daemons müssen ein Postfix-internes Protokoll sprechen. | |||
* Um Nicht-Postfix-Software auszuführen, verwenden Sie die Dienste | |||
** [[local]](8) | |||
** [[pipe]](8) | |||
** [[spawn]](8) | |||
* oder führen Sie die Software mit inetd(8) oder gleichwertig aus. | |||
Nach einer Änderung der master.cf müssen Sie "postfix reload" ausführen, um die Konfiguration neu zu laden. | |||
== Aufruf == | |||
; Allgemeines Format der Datei master.cf | |||
* Leerzeilen und Zeilen, die nur aus Leerzeichen bestehen, werden ignoriert, ebenso Zeilen, deren erstes Zeichen ohne Leerzeichen ein "#" ist. | |||
* Eine logische Zeile beginnt mit Text ohne Leerzeichen. | |||
* Eine Zeile, die mit Leerzeichen beginnt, setzt eine logische Zeile fort. | |||
* Jede logische Zeile definiert einen einzelnen Postfix-Dienst | |||
* Jeder Dienst wird durch seinen Namen und Typ identifiziert, wie unten beschrieben. | |||
* Wenn in mehreren Zeilen derselbe Dienstname und -typ angegeben ist, wird nur die letzte Zeile beibehalten. | |||
* Ansonsten spielt die Reihenfolge der master.cf-Dienstdefinitionen keine Rolle | |||
; Jede logische Zeile besteht aus acht durch Leerzeichen getrennten Feldern. | |||
* Diese werden im Folgenden in der Reihenfolge beschrieben, in der sie in der Datei master.cf erscheinen. | |||
* Ein Feld mit "-" fordert gegebenenfalls die Verwendung des eingebauten Standardwerts. | |||
* Für boolesche Felder geben Sie "y" oder "n" an, um den Standardwert zu überschreiben. | |||
=== Argumente === | |||
=== Optionen === | |||
== Dokumentation == | |||
=== Man-Page === | |||
=== Info-Pages === | |||
=== Siehe auch === | |||
== Links == | |||
=== Projekt === | |||
=== Weblinks === | |||
[[Kategorie:Postfix/Konfiguration]] | |||
= TMP = | |||
== [https://man.archlinux.org/man/master.5#NAME NAME] == | |||
master - Postfix master process configuration file format | |||
== [https://man.archlinux.org/man/master.5#DESCRIPTION DESCRIPTION] == | |||
The Postfix mail system is implemented by small number of (mostly) client commands that are invoked by users, and by a larger number of services that run in the background. | |||
Postfix services are implemented by daemon processes. These run in the background, started on-demand by the [https://man.archlinux.org/man/master.8.en master(8)] process. The master.cf configuration file defines how a client program connects to a service, and what daemon program runs when a service is requested. Most daemon processes are short-lived and terminate voluntarily after serving max_use clients, or after inactivity for max_idle or more units of time. | |||
All daemons specified here must speak a Postfix-internal protocol. In order to execute non-Postfix software use the [https://man.archlinux.org/man/local.8.en local(8)], [https://man.archlinux.org/man/pipe.8.en pipe(8)] or [https://man.archlinux.org/man/spawn.8.en spawn(8)] services, or execute the software with [https://man.archlinux.org/man/inetd.8.en inetd(8)] or equivalent. | |||
After changing master.cf you must execute "postfix reload" to reload the configuration. | |||
== [https://man.archlinux.org/man/master.5#SYNTAX SYNTAX] == | |||
The general format of the master.cf file is as follows:* Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a `#'. | |||
* A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line. | |||
* Each logical line defines a single Postfix service. Each service is identified by its name and type as described below. When multiple lines specify the same service name and type, only the last one is remembered. Otherwise, the order of master.cf service definitions does not matter. | |||
Each logical line consists of eight fields separated by whitespace. These are described below in the order as they appear in the master.cf file. | |||
Where applicable a field of "-" requests that the built-in default value be used. For boolean fields specify "y" or "n" to override the default value. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Service Service name] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service name syntax depends on the service type as described next. </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Service~2 Service type] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Specify one of the following service types: </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#inet inet] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service listens on a TCP/IP socket and is accessible via the network. </div> | |||
The service name is specified as host:port, denoting the host and port on which new connections should be accepted. The host part (and colon) may be omitted. Either host or port may be given in symbolic form (see [https://man.archlinux.org/man/hosts.5.en hosts(5)] or [https://man.archlinux.org/man/services.5.en services(5)]) or in numeric form (IP address or port number). Host information may be enclosed inside "[]"; this form is necessary only with IPv6 addresses. | |||
Examples: a service named 127.0.0.1:smtp or ::1:smtp receives mail via the loopback interface only; and a service named 10025 accepts connections on TCP port 10025 via all interfaces configured with the inet_interfaces parameter. | |||
Note: with Postfix version 2.2 and later specify "inet_interfaces = loopback-only" in main.cf, instead of hard-coding loopback IP address information in master.cf or in main.cf. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#unix unix] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service listens on a UNIX-domain stream socket and is accessible for local clients only. </div> | |||
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf). | |||
On Solaris 8 and earlier systems the unix type is implemented with streams sockets. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#unix~2 unix-dgram] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service listens on a UNIX-domain datagram socket and is accessible for local clients only. </div> | |||
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf). | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#fifo fifo (obsolete)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service listens on a FIFO (named pipe) and is accessible for local clients only. </div> | |||
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf). | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#pass pass] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The service listens on a UNIX-domain stream socket, and is accessible to local clients only. It receives one open connection (file descriptor passing) per connection request. </div> | |||
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf). | |||
On Solaris 8 and earlier systems the pass type is implemented with streams sockets. | |||
This feature is available as of Postfix version 2.5. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Private Private (default: y)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Whether a service is internal to Postfix (pathname starts with private/), or exposed through Postfix command-line tools (pathname starts with public/). Internet (type inet) services can't be private. </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Unprivileged Unprivileged (default: y)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Whether the service runs with root privileges or as the owner of the Postfix system (the owner name is controlled by the mail_owner configuration variable in the main.cf file). </div> | |||
The [https://man.archlinux.org/man/local.8.en local(8)], [https://man.archlinux.org/man/pipe.8.en pipe(8)], [https://man.archlinux.org/man/spawn.8.en spawn(8)], and [https://man.archlinux.org/man/virtual.8.en virtual(8)] daemons require privileges. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Chroot Chroot (default: Postfix >= 3.0: n, Postfix < 3.0: y)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Whether or not the service runs chrooted to the mail queue directory (pathname is controlled by the queue_directory configuration variable in the main.cf file). </div> | |||
Chroot should not be used with the [https://man.archlinux.org/man/local.8.en local(8)], [https://man.archlinux.org/man/pipe.8.en pipe(8)], [https://man.archlinux.org/man/spawn.8.en spawn(8)], and [https://man.archlinux.org/man/virtual.8.en virtual(8)] daemons. Although the [https://man.archlinux.org/man/proxymap.8.en proxymap(8)] server can run chrooted, doing so defeats most of the purpose of having that service in the first place. | |||
The files in the examples/chroot-setup subdirectory of the Postfix source show how to set up a Postfix chroot environment on a variety of systems. See also BASIC_CONFIGURATION_README for issues related to running daemons chrooted. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Wake Wake up time (default: 0)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Automatically wake up the named service after the specified number of seconds. The wake up is implemented by connecting to the service and sending a wake up request. A ? at the end of the wake-up time field requests that no wake up events be sent before the first time a service is used. Specify 0 for no automatic wake up. </div> | |||
The [https://man.archlinux.org/man/pickup.8.en pickup(8)], [https://man.archlinux.org/man/qmgr.8.en qmgr(8)] and [https://man.archlinux.org/man/flush.8.en flush(8)] daemons require a wake up timer. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Process Process limit (default: $default_process_limit)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The maximum number of processes that may execute this service simultaneously. Specify 0 for no process count limit. </div> | |||
NOTE: Some Postfix services must be configured as a single-process service (for example, [https://man.archlinux.org/man/qmgr.8.en qmgr(8)]) and some services must be configured with no process limit (for example, [https://man.archlinux.org/man/cleanup.8.en cleanup(8)]). These limits must not be changed. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Command Command name + arguments] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">The command to be executed. Characters that are special to the shell such as ">" or "|" have no special meaning here, and quotes cannot be used to protect arguments containing whitespace. To protect whitespace, use "{" and "}" as described below. </div> | |||
The command name is relative to the Postfix daemon directory (pathname is controlled by the daemon_directory configuration variable). | |||
The command argument syntax for specific commands is specified in the respective daemon manual page. | |||
The following command-line options have the same effect for all daemon programs: | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#D -D] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Run the daemon under control by the command specified with the debugger_command variable in the main.cf configuration file. See DEBUG_README for hints and tips. </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#o -o { name = value } (long form, Postfix >= 3.0)] </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#o~2 -o name=value (short form)] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Override the named main.cf configuration parameter. The parameter value can refer to other parameters as $name und weitere, just like in main.cf. See [https://man.archlinux.org/man/postconf.5.en postconf(5)] for syntax. </div> | |||
NOTE 1: With the "long form" shown above, whitespace after "{", around "=", and before "}" is ignored, and whitespace within the parameter value is preserved. | |||
NOTE 2: with the "short form" shown above, do not specify whitespace around the "=" or in parameter values. To specify a parameter value that contains whitespace, use the long form described above, or use commas instead of spaces, or specify the value in main.cf. Example: | |||
/etc/postfix/master.cf: | |||
submission inet .... smtpd | |||
-o smtpd_xxx_yyy=$submission_xxx_yyy | |||
/etc/postfix/main.cf | |||
submission_xxx_yyy = text with whitespace... | |||
NOTE 3: Over-zealous use of parameter overrides makes the Postfix configuration hard to understand and maintain. At a certain point, it might be easier to configure multiple instances of Postfix, instead of configuring multiple personalities via master.cf. | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#v -v] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Increase the verbose logging level. Specify multiple -v options to make a Postfix daemon process increasingly verbose. </div> | |||
<div style="margin-left:0cm;margin-right:0cm;">[https://man.archlinux.org/man/master.5#Other Other command-line arguments] </div> | |||
<div style="margin-left:1cm;margin-right:0cm;">Specify "{" and "}" around command arguments that contain whitespace (Postfix 3.0 and later). Whitespace after "{" and before "}" is ignored. </div> | |||
== [https://man.archlinux.org/man/master.5#SEE_ALSO SEE ALSO] == | |||
master(8), process manager | |||
postconf(5), configuration parameters | |||
== [https://man.archlinux.org/man/master.5#README_FILES README FILES] == | |||
Use "postconf readme_directory" or "postconf html_directory" to locate this information. | |||
BASIC_CONFIGURATION_README, basic configuration | |||
DEBUG_README, Postfix debugging | |||
[[Kategorie:Linux/Konfiguration/Datei]] |
Aktuelle Version vom 28. April 2025, 10:35 Uhr
master.cf - Postfix master process configuration file format
Beschreibung
- Postfix wird durch eine kleine Anzahl von (meist) Client-Befehlen implementiert
- von Benutzern aufgerufen
- Postfix-Dienste werden durch Daemon-Prozesse implementiert
- durch eine größere Anzahl von Diensten, die im Hintergrund laufen
- laufen im Hintergrund und werden bei Bedarf durch den master(8)-Prozess gestartet
- In der Konfigurationsdatei master.cf wird festgelegt
- wie ein Client-Programm eine Verbindung zu einem Dienst herstellt
- welches Daemon-Programm ausgeführt wird, wenn ein Dienst angefordert wird
- Die meisten Daemon-Prozesse sind kurzlebig
- beenden sich selbststängig, nachdem
- max_use Clients bedient wurden
- max_idle oder mehr Zeiteinheiten inaktivität abgelaufen sind
- Alle hier angegebenen Daemons müssen ein Postfix-internes Protokoll sprechen.
- Um Nicht-Postfix-Software auszuführen, verwenden Sie die Dienste
- oder führen Sie die Software mit inetd(8) oder gleichwertig aus.
Nach einer Änderung der master.cf müssen Sie "postfix reload" ausführen, um die Konfiguration neu zu laden.
Aufruf
- Allgemeines Format der Datei master.cf
- Leerzeilen und Zeilen, die nur aus Leerzeichen bestehen, werden ignoriert, ebenso Zeilen, deren erstes Zeichen ohne Leerzeichen ein "#" ist.
- Eine logische Zeile beginnt mit Text ohne Leerzeichen.
- Eine Zeile, die mit Leerzeichen beginnt, setzt eine logische Zeile fort.
- Jede logische Zeile definiert einen einzelnen Postfix-Dienst
- Jeder Dienst wird durch seinen Namen und Typ identifiziert, wie unten beschrieben.
- Wenn in mehreren Zeilen derselbe Dienstname und -typ angegeben ist, wird nur die letzte Zeile beibehalten.
- Ansonsten spielt die Reihenfolge der master.cf-Dienstdefinitionen keine Rolle
- Jede logische Zeile besteht aus acht durch Leerzeichen getrennten Feldern.
- Diese werden im Folgenden in der Reihenfolge beschrieben, in der sie in der Datei master.cf erscheinen.
- Ein Feld mit "-" fordert gegebenenfalls die Verwendung des eingebauten Standardwerts.
- Für boolesche Felder geben Sie "y" oder "n" an, um den Standardwert zu überschreiben.
Argumente
Optionen
Dokumentation
Man-Page
Info-Pages
Siehe auch
Links
Projekt
Weblinks
TMP
NAME
master - Postfix master process configuration file format
DESCRIPTION
The Postfix mail system is implemented by small number of (mostly) client commands that are invoked by users, and by a larger number of services that run in the background.
Postfix services are implemented by daemon processes. These run in the background, started on-demand by the master(8) process. The master.cf configuration file defines how a client program connects to a service, and what daemon program runs when a service is requested. Most daemon processes are short-lived and terminate voluntarily after serving max_use clients, or after inactivity for max_idle or more units of time.
All daemons specified here must speak a Postfix-internal protocol. In order to execute non-Postfix software use the local(8), pipe(8) or spawn(8) services, or execute the software with inetd(8) or equivalent.
After changing master.cf you must execute "postfix reload" to reload the configuration.
SYNTAX
The general format of the master.cf file is as follows:* Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a `#'.
- A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line.
- Each logical line defines a single Postfix service. Each service is identified by its name and type as described below. When multiple lines specify the same service name and type, only the last one is remembered. Otherwise, the order of master.cf service definitions does not matter.
Each logical line consists of eight fields separated by whitespace. These are described below in the order as they appear in the master.cf file.
Where applicable a field of "-" requests that the built-in default value be used. For boolean fields specify "y" or "n" to override the default value.
The service name is specified as host:port, denoting the host and port on which new connections should be accepted. The host part (and colon) may be omitted. Either host or port may be given in symbolic form (see hosts(5) or services(5)) or in numeric form (IP address or port number). Host information may be enclosed inside "[]"; this form is necessary only with IPv6 addresses.
Examples: a service named 127.0.0.1:smtp or ::1:smtp receives mail via the loopback interface only; and a service named 10025 accepts connections on TCP port 10025 via all interfaces configured with the inet_interfaces parameter.
Note: with Postfix version 2.2 and later specify "inet_interfaces = loopback-only" in main.cf, instead of hard-coding loopback IP address information in master.cf or in main.cf.
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf).
On Solaris 8 and earlier systems the unix type is implemented with streams sockets.
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf).
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf).
The service name is a pathname relative to the Postfix queue directory (pathname controlled with the queue_directory configuration parameter in main.cf).
On Solaris 8 and earlier systems the pass type is implemented with streams sockets.
This feature is available as of Postfix version 2.5.
The local(8), pipe(8), spawn(8), and virtual(8) daemons require privileges.
Chroot should not be used with the local(8), pipe(8), spawn(8), and virtual(8) daemons. Although the proxymap(8) server can run chrooted, doing so defeats most of the purpose of having that service in the first place.
The files in the examples/chroot-setup subdirectory of the Postfix source show how to set up a Postfix chroot environment on a variety of systems. See also BASIC_CONFIGURATION_README for issues related to running daemons chrooted.
The pickup(8), qmgr(8) and flush(8) daemons require a wake up timer.
NOTE: Some Postfix services must be configured as a single-process service (for example, qmgr(8)) and some services must be configured with no process limit (for example, cleanup(8)). These limits must not be changed.
The command name is relative to the Postfix daemon directory (pathname is controlled by the daemon_directory configuration variable).
The command argument syntax for specific commands is specified in the respective daemon manual page.
The following command-line options have the same effect for all daemon programs:
NOTE 1: With the "long form" shown above, whitespace after "{", around "=", and before "}" is ignored, and whitespace within the parameter value is preserved.
NOTE 2: with the "short form" shown above, do not specify whitespace around the "=" or in parameter values. To specify a parameter value that contains whitespace, use the long form described above, or use commas instead of spaces, or specify the value in main.cf. Example:
/etc/postfix/master.cf:
submission inet .... smtpd
-o smtpd_xxx_yyy=$submission_xxx_yyy
/etc/postfix/main.cf
submission_xxx_yyy = text with whitespace...
NOTE 3: Over-zealous use of parameter overrides makes the Postfix configuration hard to understand and maintain. At a certain point, it might be easier to configure multiple instances of Postfix, instead of configuring multiple personalities via master.cf.
SEE ALSO
master(8), process manager postconf(5), configuration parameters
README FILES
Use "postconf readme_directory" or "postconf html_directory" to locate this information.
BASIC_CONFIGURATION_README, basic configuration DEBUG_README, Postfix debugging