@@ -2,7 +2,30 @@ manifest should match snapshot:
2
2
1 : |
3
3
apiVersion : v1
4
4
data :
5
- dovecot .cf : " \n haproxy_trusted_networks = 10.0.0.0/8 192.168.0.0/16 172.16.0.0/16\n service imap-login {\n inet_listener imap {\n port = 143\n }\n \n inet_listener imaps {\n port = 993\n ssl = yes\n }\n \n inet_listener imap_proxy {\n haproxy = yes\n port = 10143\n ssl = no\n }\n\n inet_listener imaps_proxy {\n haproxy = yes\n port = 10993\n ssl = yes\n }\n }\n "
5
+ dovecot .cf : | 2
6
+ haproxy_trusted_networks = 10.0 .0.0 / 8 192.168 .0.0 / 16 172.16 .0.0 / 12
7
+ service imap - login {
8
+ inet_listener imap {
9
+ port = 143
10
+ }
11
+
12
+ inet_listener imaps {
13
+ port = 993
14
+ ssl = yes
15
+ }
16
+
17
+ inet_listener imap_proxy {
18
+ haproxy = yes
19
+ port = 10143
20
+ ssl = no
21
+ }
22
+
23
+ inet_listener imaps_proxy {
24
+ haproxy = yes
25
+ port = 10993
26
+ ssl = yes
27
+ }
28
+ }
6
29
kind : ConfigMap
7
30
metadata :
8
31
labels :
@@ -26,7 +49,49 @@ manifest should match snapshot:
26
49
3 : |
27
50
apiVersion : v1
28
51
data :
29
- user-patches.sh: "#!/bin/bash\n# Make sure to keep this file in sync with https://github.com/docker-mailserver/docker-mailserver/blob/master/target/postfix/master.cf!\ncat <<EOS >> /etc/postfix/master.cf\n\n# Submission with proxy\n10587 inet n - n - - smtpd\n -o syslog_name=postfix/submission\n -o smtpd_tls_security_level=encrypt\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy \n\n# Submissions with proxy\n10465 inet n - n - - smtpd\n -o syslog_name=postfix/submissions\n -o smtpd_tls_wrappermode=yes\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy\n\n# Smtp with proxy\n12525 inet n - n - 1 postscreen\n -o syslog_name=postfix/smtp-proxy\n -o postscreen_upstream_proxy_protocol=haproxy\n -o postscreen_cache_map=btree:$data_directory/postscreen_10025_cache\nEOS\n"
52
+ user - patches .sh : |
53
+ #! / bin / bash
54
+ # Make sure to keep this file in sync with https :// github.com/docker-mailserver/docker-mailserver/blob/master/target/postfix/master.cf!
55
+ cat << EOS >> / etc / postfix / master .cf
56
+
57
+ # Submission with proxy
58
+ 10587 inet n - n - - smtpd
59
+ - o syslog_name = postfix / submission
60
+ - o smtpd_tls_security_level = encrypt
61
+ - o smtpd_sasl_auth_enable = yes
62
+ - o smtpd_sasl_type = dovecot
63
+ - o smtpd_reject_unlisted_recipient = no
64
+ - o smtpd_sasl_authenticated_header = yes
65
+ - o smtpd_client_restrictions = permit_sasl_authenticated ,reject
66
+ - o smtpd_relay_restrictions = permit_sasl_authenticated ,reject
67
+ - o smtpd_sender_restrictions = \$mua_sender_restrictions
68
+ - o smtpd_discard_ehlo_keywords =
69
+ - o milter_macro_daemon_name = ORIGINATING
70
+ - o cleanup_service_name = sender - cleanup
71
+ - o smtpd_upstream_proxy_protocol = haproxy
72
+
73
+ # Submissions with proxy
74
+ 10465 inet n - n - - smtpd
75
+ - o syslog_name = postfix / submissions
76
+ - o smtpd_tls_wrappermode = yes
77
+ - o smtpd_sasl_auth_enable = yes
78
+ - o smtpd_sasl_type = dovecot
79
+ - o smtpd_reject_unlisted_recipient = no
80
+ - o smtpd_sasl_authenticated_header = yes
81
+ - o smtpd_client_restrictions = permit_sasl_authenticated ,reject
82
+ - o smtpd_relay_restrictions = permit_sasl_authenticated ,reject
83
+ - o smtpd_sender_restrictions = \$mua_sender_restrictions
84
+ - o smtpd_discard_ehlo_keywords =
85
+ - o milter_macro_daemon_name = ORIGINATING
86
+ - o cleanup_service_name = sender - cleanup
87
+ - o smtpd_upstream_proxy_protocol = haproxy
88
+
89
+ # Smtp with proxy
90
+ 12525 inet n - n - 1 postscreen
91
+ - o syslog_name = postfix / smtp - proxy
92
+ - o postscreen_upstream_proxy_protocol = haproxy
93
+ - o postscreen_cache_map = btree :$data_directory / postscreen_10025_cache
94
+ EOS
30
95
kind : ConfigMap
31
96
metadata :
32
97
labels :
0 commit comments