Skip to content

Commit 2306664

Browse files
committed
Don't default dovecot to replicate to anotherhost.example.com
(closes #9)
1 parent 595ed7a commit 2306664

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

charts/docker-mailserver/templates/configmap.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ data:
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 -}}
4040
dovecot.cf: |
41-
{{ if .Values.haproxy.enabled -}}
41+
{{- if .Values.haproxy.enabled }}
4242
haproxy_trusted_networks = {{ .Values.haproxy.trustedNetworks }}
4343
{{ end }}
44-
service imap-login {
44+
service imap-login {
4545
inet_listener imap {
4646
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
4747
}
4848
inet_listener imaps {
4949
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
5050
}
51-
{{ if .Values.rainloop.enabled -}}
51+
{{- if .Values.rainloop.enabled }}
5252
inet_listener imaps-rainloop {
5353
port = 10993
5454
ssl = yes
@@ -63,7 +63,6 @@ data:
6363
{{ if .Values.haproxy.enabled -}}haproxy = yes{{ end }}
6464
}
6565
}
66-
{{ end -}}
6766

6867

6968
80-replication.conf: |
@@ -97,7 +96,7 @@ data:
9796
}
9897
9998
plugin {
100-
mail_replica = tcp:anotherhost.example.com # use doveadm_port
99+
#mail_replica = tcp:anotherhost.example.com # use doveadm_port
101100
#mail_replica = tcp:anotherhost.example.com:12345 # use port 12345 explicitly
102101
}
103102

0 commit comments

Comments
 (0)