xref: /netbsd-src/external/ibm-public/postfix/dist/conf/master.cf (revision c48c605c14fd8622b523d1d6a3f0c0bad133ea89)
1#	$NetBSD: master.cf,v 1.11 2023/12/23 20:30:42 christos Exp $
2#
3#
4# Postfix master process configuration file.  For details on the format
5# of the file, see the master(5) manual page (command: "man 5 master" or
6# on-line: http://www.postfix.org/master.5.html).
7#
8# Do not forget to execute "postfix reload" after editing this file.
9#
10# ==========================================================================
11# service type  private unpriv  chroot  wakeup  maxproc command + args
12#               (yes)   (yes)   (no)    (never) (100)
13# ==========================================================================
14#smtp      inet  n       -       n       -       -       smtpd
15#smtp      inet  n       -       n       -       1       postscreen
16#smtpd     pass  -       -       n       -       -       smtpd
17#dnsblog   unix  -       -       n       -       0       dnsblog
18#tlsproxy  unix  -       -       n       -       0       tlsproxy
19# Choose one: enable submission for loopback clients only, or for any client.
20#127.0.0.1:submission inet n -   n       -       -       smtpd
21#submission inet n       -       n       -       -       smtpd
22#  -o syslog_name=postfix/submission
23#  -o smtpd_tls_security_level=encrypt
24#  -o smtpd_sasl_auth_enable=yes
25#  -o smtpd_tls_auth_only=yes
26#  -o local_header_rewrite_clients=static:all
27#  -o smtpd_reject_unlisted_recipient=no
28#     Instead of specifying complex smtpd_<xxx>_restrictions here,
29#     specify "smtpd_<xxx>_restrictions=$mua_<xxx>_restrictions"
30#     here, and specify mua_<xxx>_restrictions in main.cf (where
31#     "<xxx>" is "client", "helo", "sender", "relay", or "recipient").
32#  -o smtpd_client_restrictions=
33#  -o smtpd_helo_restrictions=
34#  -o smtpd_sender_restrictions=
35#  -o smtpd_relay_restrictions=
36#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
37#  -o milter_macro_daemon_name=ORIGINATING
38# Choose one: enable submissions for loopback clients only, or for any client.
39#127.0.0.1:submissions inet n  -       n       -       -       smtpd
40#submissions     inet  n       -       n       -       -       smtpd
41#  -o syslog_name=postfix/submissions
42#  -o smtpd_tls_wrappermode=yes
43#  -o smtpd_sasl_auth_enable=yes
44#  -o local_header_rewrite_clients=static:all
45#  -o smtpd_reject_unlisted_recipient=no
46#     Instead of specifying complex smtpd_<xxx>_restrictions here,
47#     specify "smtpd_<xxx>_restrictions=$mua_<xxx>_restrictions"
48#     here, and specify mua_<xxx>_restrictions in main.cf (where
49#     "<xxx>" is "client", "helo", "sender", "relay", or "recipient").
50#  -o smtpd_client_restrictions=
51#  -o smtpd_helo_restrictions=
52#  -o smtpd_sender_restrictions=
53#  -o smtpd_relay_restrictions=
54#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
55#  -o milter_macro_daemon_name=ORIGINATING
56#628       inet  n       -       n       -       -       qmqpd
57pickup    unix  n       -       n       60      1       pickup
58cleanup   unix  n       -       n       -       0       cleanup
59qmgr      unix  n       -       n       300     1       qmgr
60#qmgr     unix  n       -       n       300     1       oqmgr
61tlsmgr    unix  -       -       n       1000?   1       tlsmgr
62rewrite   unix  -       -       n       -       -       trivial-rewrite
63bounce    unix  -       -       n       -       0       bounce
64defer     unix  -       -       n       -       0       bounce
65trace     unix  -       -       n       -       0       bounce
66verify    unix  -       -       n       -       1       verify
67flush     unix  n       -       n       1000?   0       flush
68proxymap  unix  -       -       n       -       -       proxymap
69proxywrite unix -       -       n       -       1       proxymap
70smtp      unix  -       -       n       -       -       smtp
71relay     unix  -       -       n       -       -       smtp
72        -o syslog_name=postfix/$service_name
73#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
74showq     unix  n       -       n       -       -       showq
75error     unix  -       -       n       -       -       error
76retry     unix  -       -       n       -       -       error
77discard   unix  -       -       n       -       -       discard
78local     unix  -       n       n       -       -       local
79virtual   unix  -       n       n       -       -       virtual
80lmtp      unix  -       -       n       -       -       lmtp
81anvil     unix  -       -       n       -       1       anvil
82scache    unix  -       -       n       -       1       scache
83postlog   unix-dgram n  -       n       -       1       postlogd
84#
85# ====================================================================
86# Interfaces to non-Postfix software. Be sure to examine the manual
87# pages of the non-Postfix software to find out what options it wants.
88#
89# Many of the following services use the Postfix pipe(8) delivery
90# agent.  See the pipe(8) man page for information about ${recipient}
91# and other message envelope options.
92# ====================================================================
93#
94# maildrop. See the Postfix MAILDROP_README file for details.
95# Also specify in main.cf: maildrop_destination_recipient_limit=1
96#
97#maildrop  unix  -       n       n       -       -       pipe
98#  flags=DRXhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
99#
100# ====================================================================
101#
102# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
103#
104# Specify in cyrus.conf:
105#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
106#
107# Specify in main.cf one or more of the following:
108#  mailbox_transport = lmtp:inet:localhost
109#  virtual_transport = lmtp:inet:localhost
110#
111# ====================================================================
112#
113# Cyrus 2.1.5 (Amos Gouaux)
114# Also specify in main.cf: cyrus_destination_recipient_limit=1
115#
116#cyrus     unix  -       n       n       -       -       pipe
117#  flags=DRX user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
118#
119# ====================================================================
120#
121# Old example of delivery via Cyrus.
122#
123#old-cyrus unix  -       n       n       -       -       pipe
124#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
125#
126# ====================================================================
127#
128# See the Postfix UUCP_README file for configuration details.
129#
130#uucp      unix  -       n       n       -       -       pipe
131#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
132#
133# ====================================================================
134#
135# Other external delivery methods.
136#
137#ifmail    unix  -       n       n       -       -       pipe
138#  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
139#
140#bsmtp     unix  -       n       n       -       -       pipe
141#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
142#
143#scalemail-backend unix -       n       n       -       2       pipe
144#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
145#  ${nexthop} ${user} ${extension}
146#
147#mailman   unix  -       n       n       -       -       pipe
148#  flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
149#  ${nexthop} ${user}
150