2 # Postfix master process configuration file. For details on the format
3 # of the file, see the master(5) manual page (command: "man 5 master" or
4 # on-line: http://www.postfix.org/master.5.html).
6 # Do not forget to execute "postfix reload" after editing this file.
8 # ==========================================================================
9 # service type private unpriv chroot wakeup maxproc command + args
10 # (yes) (yes) (no) (never) (100)
11 # ==========================================================================
12 {% if postfix.postscreen | default(False) %}
13 smtp inet n - y - 1 postscreen
14 smtpd pass - - y - - smtpd
15 dnsblog unix - - y - 0 dnsblog
16 tlsproxy unix - - y - 0 tlsproxy
18 smtp inet n - y - - smtpd
20 {% if postfix.smtpd_26 | default(False) %}
21 26 inet n - y - - smtpd
22 -o syslog_name=postfix/smtpd2
23 -o smtpd_tls_security_level=encrypt
24 -o smtpd_recipient_restrictions=permit_mynetworks,permit_tls_clientcerts,reject
27 {% if postfix.submission | default(False) %}
28 submission inet n - y - - smtpd
29 -o syslog_name=postfix/submission
30 -o smtpd_tls_security_level=encrypt
31 -o smtpd_sasl_auth_enable=yes
32 -o smtpd_tls_ask_ccert=no
33 -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
34 -o smtpd_recipient_restrictions=reject_sender_login_mismatch
37 pickup unix n - y 60 1 pickup
38 cleanup unix n - y - 0 cleanup
39 qmgr unix n - n 300 1 qmgr
40 #qmgr unix n - n 300 1 oqmgr
41 tlsmgr unix - - y 1000? 1 tlsmgr
42 rewrite unix - - y - - trivial-rewrite
43 bounce unix - - y - 0 bounce
44 defer unix - - y - 0 bounce
45 trace unix - - y - 0 bounce
46 verify unix - - y - 1 verify
47 flush unix n - y 1000? 0 flush
48 proxymap unix - - n - - proxymap
49 proxywrite unix - - n - 1 proxymap
50 {% if postfix.smtp_outgoing is defined %}
51 {% for item in postfix.smtp_outgoing %}
52 {{item.name}} unix - - - - - smtp
53 -o smtp_helo_name={{item.hostname}}
54 -o smtp_bind_address={{item.ip}}
55 {% if item.ip_v6 is defined %}
56 -o smtp_bind_address6={{item.ip_v6}}
58 -o inet_protocols=ipv4
62 smtp unix - - y - - smtp
64 relay unix - - y - - smtp
65 # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
66 showq unix n - y - - showq
67 error unix - - y - - error
68 retry unix - - y - - error
69 discard unix - - y - - discard
70 local unix - n n - - local
71 #virtual unix - n n - - virtual
72 lmtp unix - - y - - lmtp
73 anvil unix - - y - 1 anvil
74 scache unix - - y - 1 scache
76 # ====================================================================
77 # Interfaces to non-Postfix software. Be sure to examine the manual
78 # pages of the non-Postfix software to find out what options it wants.
80 # Many of the following services use the Postfix pipe(8) delivery
81 # agent. See the pipe(8) man page for information about ${recipient}
82 # and other message envelope options.
83 # ====================================================================
85 # maildrop. See the Postfix MAILDROP_README file for details.
86 # Also specify in main.cf: maildrop_destination_recipient_limit=1
88 #maildrop unix - n n - - pipe
89 # flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
91 # ====================================================================
93 # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
95 # Specify in cyrus.conf:
96 # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
98 # Specify in main.cf one or more of the following:
99 # mailbox_transport = lmtp:inet:localhost
100 # virtual_transport = lmtp:inet:localhost
102 # ====================================================================
104 # Cyrus 2.1.5 (Amos Gouaux)
105 # Also specify in main.cf: cyrus_destination_recipient_limit=1
107 #cyrus unix - n n - - pipe
108 # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
110 # ====================================================================
111 # Old example of delivery via Cyrus.
113 #old-cyrus unix - n n - - pipe
114 # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
116 # ====================================================================
118 # See the Postfix UUCP_README file for configuration details.
120 #uucp unix - n n - - pipe
121 # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
123 # Other external delivery methods.
125 #ifmail unix - n n - - pipe
126 # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
127 #bsmtp unix - n n - - pipe
128 # flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
129 #scalemail-backend unix - n n - 2 pipe
130 # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
132 {% if postfix.mailman is defined and postfix.mailman %}
133 mailman unix - n n - - pipe
134 flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py