Skip to content

Commit 543d001

Browse files
authored
Merge pull request #10 from abh/no-haproxy
Include dovecot config even if haproxy is disabled
2 parents 72b844d + 2306664 commit 543d001

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

charts/docker-mailserver/templates/configmap.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@ data:
3737
{{ if .Values.spfTestsDisabled }}
3838
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net
3939
{{ end -}}
40-
{{ if .Values.haproxy.enabled -}}
41-
dovecot.cf: |
40+
dovecot.cf: |
41+
{{- if .Values.haproxy.enabled }}
4242
haproxy_trusted_networks = {{ .Values.haproxy.trustedNetworks }}
43+
{{ end }}
4344
service imap-login {
4445
inet_listener imap {
45-
haproxy = yes
46+
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
4647
}
4748
inet_listener imaps {
48-
haproxy = yes
49+
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
4950
}
50-
{{ if .Values.rainloop.enabled -}}
51+
{{- if .Values.rainloop.enabled }}
5152
inet_listener imaps-rainloop {
5253
port = 10993
5354
ssl = yes
@@ -56,13 +57,14 @@ data:
5657
}
5758
service pop3-login {
5859
inet_listener pop3 {
59-
haproxy = yes
60+
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
6061
}
6162
inet_listener pop3s {
62-
haproxy = yes
63+
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
6364
}
6465
}
6566

67+
6668
80-replication.conf: |
6769
mail_plugins = $mail_plugins notify replication
6870
@@ -94,7 +96,7 @@ data:
9496
}
9597
9698
plugin {
97-
mail_replica = tcp:anotherhost.example.com # use doveadm_port
99+
#mail_replica = tcp:anotherhost.example.com # use doveadm_port
98100
#mail_replica = tcp:anotherhost.example.com:12345 # use port 12345 explicitly
99101
}
100102
@@ -104,7 +106,6 @@ data:
104106
sieve_dir = /var/mail/sieve/%d/%n/sieve
105107
}
106108
107-
{{ end -}}
108109
am-i-healthy.sh: |
109110
#!/bin/bash
110111
# this script is intended to be used by periodic kubernetes liveness probes to ensure that the container

0 commit comments

Comments
 (0)