fix postscreen and DKIM permissions
[ansible.git] / roles / postfix / templates / master.cf
1 #
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).
5 #
6 # Do not forget to execute "postfix reload" after editing this file.
7 #
8 # ==========================================================================
9 # service type  private unpriv  chroot  wakeup  maxproc command + args
10 #               (yes)   (yes)   (no)    (never) (100)
11 # ==========================================================================
12 {% if postfix.postscreen is defined and postfix.postscreen %}
13 smtp       inet  n       -       y       -       1       postscreen
14 smtpd      pass  -       -       y       -       -       smtpd
15 dnsblog    unix  -       -       y       -       0       dnsblog
16 tlsproxy   unix  -       -       y       -       0       tlsproxy
17 {% else %}
18 smtp      inet  n       -       y       -       -       smtpd
19 {% endif %}
20
21 {% if postfix.submission is defined and postfix.submission %}
22 submission inet  n       -       y       -       -       smtpd
23     -o syslog_name=postfix/submission
24     -o smtpd_tls_security_level=encrypt
25     -o smtpd_sasl_auth_enable=yes
26     -o smtpd_tls_ask_ccert=no
27     -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
28     -o smtpd_recipient_restrictions=reject_sender_login_mismatch
29 {% endif %}
30
31 pickup    unix  n       -       y       60      1       pickup
32 cleanup   unix  n       -       y       -       0       cleanup
33 qmgr      unix  n       -       n       300     1       qmgr
34 #qmgr     unix  n       -       n       300     1       oqmgr
35 tlsmgr    unix  -       -       y       1000?   1       tlsmgr
36 rewrite   unix  -       -       y       -       -       trivial-rewrite
37 bounce    unix  -       -       y       -       0       bounce
38 defer     unix  -       -       y       -       0       bounce
39 trace     unix  -       -       y       -       0       bounce
40 verify    unix  -       -       y       -       1       verify
41 flush     unix  n       -       y       1000?   0       flush
42 proxymap  unix  -       -       n       -       -       proxymap
43 proxywrite unix -       -       n       -       1       proxymap
44 smtp      unix  -       -       y       -       -       smtp
45 relay     unix  -       -       y       -       -       smtp
46 #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
47 showq     unix  n       -       y       -       -       showq
48 error     unix  -       -       y       -       -       error
49 retry     unix  -       -       y       -       -       error
50 discard   unix  -       -       y       -       -       discard
51 local     unix  -       n       n       -       -       local
52 #virtual   unix  -       n       n       -       -       virtual
53 lmtp      unix  -       -       y       -       -       lmtp
54 anvil     unix  -       -       y       -       1       anvil
55 scache    unix  -       -       y       -       1       scache
56
57 # ====================================================================
58 # Interfaces to non-Postfix software. Be sure to examine the manual
59 # pages of the non-Postfix software to find out what options it wants.
60 #
61 # Many of the following services use the Postfix pipe(8) delivery
62 # agent.  See the pipe(8) man page for information about ${recipient}
63 # and other message envelope options.
64 # ====================================================================
65 #
66 # maildrop. See the Postfix MAILDROP_README file for details.
67 # Also specify in main.cf: maildrop_destination_recipient_limit=1
68 #
69 #maildrop  unix  -       n       n       -       -       pipe
70 #  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
71 #
72 # ====================================================================
73 #
74 # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
75 #
76 # Specify in cyrus.conf:
77 #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
78 #
79 # Specify in main.cf one or more of the following:
80 #  mailbox_transport = lmtp:inet:localhost
81 #  virtual_transport = lmtp:inet:localhost
82 #
83 # ====================================================================
84 #
85 # Cyrus 2.1.5 (Amos Gouaux)
86 # Also specify in main.cf: cyrus_destination_recipient_limit=1
87 #
88 #cyrus     unix  -       n       n       -       -       pipe
89 #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
90 #
91 # ====================================================================
92 # Old example of delivery via Cyrus.
93 #
94 #old-cyrus unix  -       n       n       -       -       pipe
95 #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
96 #
97 # ====================================================================
98 #
99 # See the Postfix UUCP_README file for configuration details.
100 #
101 #uucp      unix  -       n       n       -       -       pipe
102 #  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
103 #
104 # Other external delivery methods.
105 #
106 #ifmail    unix  -       n       n       -       -       pipe
107 #  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
108 #bsmtp     unix  -       n       n       -       -       pipe
109 #  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
110 #scalemail-backend unix -       n       n       -       2       pipe
111 #  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
112
113 {% if postfix.mailman is defined and postfix.mailman %}
114 mailman   unix  -       n       n       -       -       pipe
115   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
116   ${nexthop} ${user}
117 {% endif %}