annotate modules/postfix/templates/master.cf.epp @ 326:63e0b5149cfb

Add fallback relays to Postfix This allows us to reliably send to IPv4 servers via Mythic-Beasts' mailserver rather than getting random IPs from the NAT64 servers. The firewall rules should ensure Postfix doesn't try to send email out via NAT64 and falls back to the relay. IPv6 will still go directly.
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Mar 2020 14:29:34 +0000
parents 6d719622c72f
children 38bb323e8231
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <%- |
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 Stdlib::IP::Address $mailserver_ip,
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 Optional[Stdlib::IP::Address] $mailserver_proxy = undef,
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 Stdlib::IP::Address $lo_ip,
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 Stdlib::IP::Address $lo_networks,
326
63e0b5149cfb Add fallback relays to Postfix
IBBoard <dev@ibboard.co.uk>
parents: 319
diff changeset
6 Optional[Array[Stdlib::Host]] $fallback_relays = []
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 |
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 -%>
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 # Postfix master process configuration file. For details on the format
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 # of the file, see the master(5) manual page (command: "man 5 master").
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 # Do not forget to execute "postfix reload" after editing this file.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 # ==========================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 # service type private unpriv chroot wakeup maxproc command + args
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 # (yes) (yes) (yes) (never) (100)
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 # ==========================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 #smtp inet n - n - - smtpd
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 smtpd pass - - n - - smtpd
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
21 -o smtpd_sasl_auth_enable=no
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
22
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
23 [<%= $lo_ip %>]:smtp inet n - n - 1 smtpd
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
24 -o smtpd_sasl_auth_enable=yes
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
25
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 [<%= $mailserver_ip %>]:smtp inet n - n - 1 postscreen
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
27 -o receive_override_options=no_address_mappings
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
28 -o smtpd_sasl_auth_enable=no
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
29
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
30
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 <%- if $mailserver_proxy != undef { -%>
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 [<%= $mailserver_proxy %>]:smtps inet n - n - - smtpd
316
84a575614d3c Correct Postfix PROXY listening (and sending)
IBBoard <dev@ibboard.co.uk>
parents: 315
diff changeset
33 -o smtpd_upstream_proxy_protocol=haproxy
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 -o smtpd_tls_wrappermode=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 -o smtpd_sasl_auth_enable=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 -o smtpd_client_restrictions=permit_sasl_authenticated,reject
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 -o milter_macro_daemon_name=ORIGINATING
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
38
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 [<%= $mailserver_proxy %>]:submission inet n - n - - smtpd
316
84a575614d3c Correct Postfix PROXY listening (and sending)
IBBoard <dev@ibboard.co.uk>
parents: 315
diff changeset
40 -o smtpd_upstream_proxy_protocol=haproxy
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 -o smtpd_tls_security_level=encrypt
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 -o smtpd_sasl_auth_enable=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 -o smtpd_client_restrictions=permit_sasl_authenticated,reject
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 -o milter_macro_daemon_name=ORIGINATING
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 <%- } -%>
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
46
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 tlsproxy unix - - n - 0 tlsproxy
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 dnsblog unix - - n - 0 dnsblog
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
49
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 [<%= $mailserver_ip %>]:submission inet n - n - - smtpd
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 -o smtpd_tls_security_level=encrypt
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 -o smtpd_sasl_auth_enable=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 -o smtpd_client_restrictions=permit_sasl_authenticated,reject
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 -o milter_macro_daemon_name=ORIGINATING
315
469f2ff92df2 Add a loopback SMTP (for webmail) and strip out other args
IBBoard <dev@ibboard.co.uk>
parents: 314
diff changeset
55
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 [<%= $mailserver_ip %>]:smtps inet n - n - - smtpd
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 -o smtpd_tls_wrappermode=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 -o smtpd_sasl_auth_enable=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 -o smtpd_client_restrictions=permit_sasl_authenticated,reject
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 -o milter_macro_daemon_name=ORIGINATING
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 #628 inet n - n - - qmqpd
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 pickup fifo n - n 60 1 pickup
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 cleanup unix n - n - 0 cleanup
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 qmgr fifo n - n 300 1 qmgr
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 #qmgr fifo n - n 300 1 oqmgr
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 tlsmgr unix - - n 1000? 1 tlsmgr
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 rewrite unix - - n - - trivial-rewrite
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 bounce unix - - n - 0 bounce
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 defer unix - - n - 0 bounce
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 trace unix - - n - 0 bounce
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 verify unix - - n - 1 verify
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 flush unix n - n 1000? 0 flush
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 proxymap unix - - n - - proxymap
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 proxywrite unix - - n - 1 proxymap
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 smtp unix - - n - - smtp
318
6c89e2c3b5aa Fix outbound mail IP
IBBoard <dev@ibboard.co.uk>
parents: 316
diff changeset
76 <%- if $mailserver_ip =~ Stdlib::IP::Address::V6 { -%>
6c89e2c3b5aa Fix outbound mail IP
IBBoard <dev@ibboard.co.uk>
parents: 316
diff changeset
77 -o smtp_bind_address6=<%= $mailserver_ip %>
6c89e2c3b5aa Fix outbound mail IP
IBBoard <dev@ibboard.co.uk>
parents: 316
diff changeset
78 <%- } else { -%>
6c89e2c3b5aa Fix outbound mail IP
IBBoard <dev@ibboard.co.uk>
parents: 316
diff changeset
79 -o smtp_bind_address=<%= $mailserver_ip %>
6c89e2c3b5aa Fix outbound mail IP
IBBoard <dev@ibboard.co.uk>
parents: 316
diff changeset
80 <%- } -%>
326
63e0b5149cfb Add fallback relays to Postfix
IBBoard <dev@ibboard.co.uk>
parents: 319
diff changeset
81 <%- if size($fallback_relays) > 0 { -%>
63e0b5149cfb Add fallback relays to Postfix
IBBoard <dev@ibboard.co.uk>
parents: 319
diff changeset
82 -o smtp_fallback_relays=<%= join($fallback_relays.map |$relay| { "[$relay]" }, ", ") %>
63e0b5149cfb Add fallback relays to Postfix
IBBoard <dev@ibboard.co.uk>
parents: 319
diff changeset
83 <%- } -%>
314
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 relay unix - - n - - smtp
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 -o smtp_fallback_relay=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 showq unix n - n - - showq
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 error unix - - n - - error
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 retry unix - - n - - error
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 discard unix - - n - - discard
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 local unix - n n - - local
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 virtual unix - n n - - virtual
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 lmtp unix - - n - - lmtp
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 anvil unix - - n - 1 anvil
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 scache unix - - n - 1 scache
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 # Interfaces to non-Postfix software. Be sure to examine the manual
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 # pages of the non-Postfix software to find out what options it wants.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 # Many of the following services use the Postfix pipe(8) delivery
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 # agent. See the pipe(8) man page for information about ${recipient}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 # and other message envelope options.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 # maildrop. See the Postfix MAILDROP_README file for details.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 # Also specify in main.cf: maildrop_destination_recipient_limit=1
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 #maildrop unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 # flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 # The Cyrus deliver program has changed incompatibly, multiple times.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 #old-cyrus unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 # flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 # Cyrus 2.1.5 (Amos Gouaux)
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 # Also specify in main.cf: cyrus_destination_recipient_limit=1
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 #cyrus unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 # user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 # See the Postfix UUCP_README file for configuration details.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 #uucp unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 # ====================================================================
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 # Other external delivery methods.
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 #ifmail unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 #bsmtp unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 # flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 #scalemail-backend unix - n n - 2 pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 # ${nexthop} ${user} ${extension}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 #mailman unix - n n - - pipe
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 # flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 # ${nexthop} ${user}
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 policy unix - n n - 0 spawn
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 user=nobody argv=/usr/bin/perl /usr/local/lib/postfix-policyd-spf-perl/postfix-policyd-spf-perl
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 # spam/virus section
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 #
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 smtp-amavis unix - - y - 2 smtp
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 -o smtp_data_done_timeout=1200
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 -o disable_dns_lookups=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 -o smtp_send_xforward_command=yes
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 [<%= $lo_ip %>]:10025 inet n - y - - smtpd
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 -o content_filter=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 -o smtpd_helo_restrictions=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 -o smtpd_sender_restrictions=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 -o smtpd_recipient_restrictions=permit_mynetworks,reject
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 -o mynetworks=[<%= $lo_networks %>]
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 -o smtpd_error_sleep_time=0
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 -o smtpd_soft_error_limit=1001
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 -o smtpd_hard_error_limit=1000
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 -o receive_override_options=no_header_body_checks
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 -o smtpd_helo_required=no
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 -o smtpd_client_restrictions=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 -o smtpd_restriction_classes=
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 -o disable_vrfy_command=no
0cddcd21c45e Add forgotten "EPP" format template files
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 -o strict_rfc821_envelopes=yes