diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-02 13:34:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-30 21:09:29 +0800 |
commit | 9934dd538b0ce116e3b1600272cb46369b082246 (patch) | |
tree | 2f28c6c362201151eaf8218e566479ed7eb72070 /postfix/master.cf |
init commit
Diffstat (limited to 'postfix/master.cf')
-rw-r--r-- | postfix/master.cf | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/postfix/master.cf b/postfix/master.cf new file mode 100644 index 0000000..883a466 --- /dev/null +++ b/postfix/master.cf | |||
@@ -0,0 +1,141 @@ | |||
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 | smtp inet n - n - - smtpd | ||
13 | #smtp inet n - n - - smtpd -o content_filter=myhook:dummy | ||
14 | #smtp inet n - n - 1 postscreen | ||
15 | #smtpd pass - - n - - smtpd | ||
16 | #dnsblog unix - - n - 0 dnsblog | ||
17 | #tlsproxy unix - - n - 0 tlsproxy | ||
18 | # Choose one: enable submission for loopback clients only, or for any client. | ||
19 | #127.0.0.1:submission inet n - n - - smtpd | ||
20 | submission inet n - n - - smtpd | ||
21 | -o syslog_name=postfix/submission | ||
22 | -o smtpd_tls_security_level=encrypt | ||
23 | -o smtpd_sasl_auth_enable=yes | ||
24 | # -o smtpd_tls_auth_only=yes | ||
25 | # -o smtpd_reject_unlisted_recipient=no | ||
26 | # -o smtpd_client_restrictions=$mua_client_restrictions | ||
27 | # -o smtpd_helo_restrictions=$mua_helo_restrictions | ||
28 | # -o smtpd_sender_restrictions=$mua_sender_restrictions | ||
29 | # -o smtpd_recipient_restrictions= | ||
30 | # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject | ||
31 | # -o milter_macro_daemon_name=ORIGINATING | ||
32 | # Choose one: enable smtps for loopback clients only, or for any client. | ||
33 | #127.0.0.1:smtps inet n - n - - smtpd | ||
34 | #smtps inet n - n - - smtpd | ||
35 | # -o syslog_name=postfix/smtps | ||
36 | # -o smtpd_tls_wrappermode=yes | ||
37 | # -o smtpd_sasl_auth_enable=yes | ||
38 | # -o smtpd_reject_unlisted_recipient=no | ||
39 | # -o smtpd_client_restrictions=$mua_client_restrictions | ||
40 | # -o smtpd_helo_restrictions=$mua_helo_restrictions | ||
41 | # -o smtpd_sender_restrictions=$mua_sender_restrictions | ||
42 | # -o smtpd_recipient_restrictions= | ||
43 | # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject | ||
44 | # -o milter_macro_daemon_name=ORIGINATING | ||
45 | #628 inet n - n - - qmqpd | ||
46 | pickup unix n - n 60 1 pickup | ||
47 | cleanup unix n - n - 0 cleanup | ||
48 | qmgr unix n - n 300 1 qmgr | ||
49 | #qmgr unix n - n 300 1 oqmgr | ||
50 | tlsmgr unix - - n 1000? 1 tlsmgr | ||
51 | rewrite unix - - n - - trivial-rewrite | ||
52 | bounce unix - - n - 0 bounce | ||
53 | defer unix - - n - 0 bounce | ||
54 | trace unix - - n - 0 bounce | ||
55 | verify unix - - n - 1 verify | ||
56 | flush unix n - n 1000? 0 flush | ||
57 | proxymap unix - - n - - proxymap | ||
58 | proxywrite unix - - n - 1 proxymap | ||
59 | smtp unix - - n - - smtp | ||
60 | relay unix - - n - - smtp | ||
61 | -o syslog_name=postfix/$service_name | ||
62 | # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 | ||
63 | showq unix n - n - - showq | ||
64 | error unix - - n - - error | ||
65 | retry unix - - n - - error | ||
66 | discard unix - - n - - discard | ||
67 | local unix - n n - - local | ||
68 | virtual unix - n n - - virtual | ||
69 | lmtp unix - - n - - lmtp | ||
70 | anvil unix - - n - 1 anvil | ||
71 | scache unix - - n - 1 scache | ||
72 | postlog unix-dgram n - n - 1 postlogd | ||
73 | # | ||
74 | # ==================================================================== | ||
75 | # Interfaces to non-Postfix software. Be sure to examine the manual | ||
76 | # pages of the non-Postfix software to find out what options it wants. | ||
77 | # | ||
78 | # Many of the following services use the Postfix pipe(8) delivery | ||
79 | # agent. See the pipe(8) man page for information about ${recipient} | ||
80 | # and other message envelope options. | ||
81 | # ==================================================================== | ||
82 | # | ||
83 | # maildrop. See the Postfix MAILDROP_README file for details. | ||
84 | # Also specify in main.cf: maildrop_destination_recipient_limit=1 | ||
85 | # | ||
86 | #maildrop unix - n n - - pipe | ||
87 | # flags=DRXhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} | ||
88 | # | ||
89 | # ==================================================================== | ||
90 | # | ||
91 | # Recent Cyrus versions can use the existing "lmtp" master.cf entry. | ||
92 | # | ||
93 | # Specify in cyrus.conf: | ||
94 | # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 | ||
95 | # | ||
96 | # Specify in main.cf one or more of the following: | ||
97 | # mailbox_transport = lmtp:inet:localhost | ||
98 | # virtual_transport = lmtp:inet:localhost | ||
99 | # | ||
100 | # ==================================================================== | ||
101 | # | ||
102 | # Cyrus 2.1.5 (Amos Gouaux) | ||
103 | # Also specify in main.cf: cyrus_destination_recipient_limit=1 | ||
104 | # | ||
105 | #cyrus unix - n n - - pipe | ||
106 | # flags=DRX user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} | ||
107 | # | ||
108 | # ==================================================================== | ||
109 | # | ||
110 | # Old example of delivery via Cyrus. | ||
111 | # | ||
112 | #old-cyrus unix - n n - - pipe | ||
113 | # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} | ||
114 | # | ||
115 | # ==================================================================== | ||
116 | # | ||
117 | # See the Postfix UUCP_README file for configuration details. | ||
118 | # | ||
119 | #uucp unix - n n - - pipe | ||
120 | # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) | ||
121 | # | ||
122 | # ==================================================================== | ||
123 | # | ||
124 | # Other external delivery methods. | ||
125 | # | ||
126 | #ifmail unix - n n - - pipe | ||
127 | # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) | ||
128 | # | ||
129 | #bsmtp unix - n n - - pipe | ||
130 | # flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient | ||
131 | # | ||
132 | #scalemail-backend unix - n n - 2 pipe | ||
133 | # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store | ||
134 | # ${nexthop} ${user} ${extension} | ||
135 | # | ||
136 | #mailman unix - n n - - pipe | ||
137 | # flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py | ||
138 | # ${nexthop} ${user} | ||
139 | # | ||
140 | |||
141 | myhook unix - n n - - pipe flags=F user=pham argv=/home/pham/scripts/postfix-test ${sender} ${size} ${recipient} | ||