summaryrefslogtreecommitdiffstats
path: root/roles/IMAP
diff options
context:
space:
mode:
Diffstat (limited to 'roles/IMAP')
-rw-r--r--roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2 b/roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2
index 4969550..aea7f87 100644
--- a/roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2
+++ b/roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2
@@ -16,8 +16,12 @@
service imap-login {
inet_listener imap {
+{% if groups.all | length > 1 %}
address = {{ ipsec[inventory_hostname_short] }}
port = 143
+{% else %}
+ port = 0
+{% endif %}
}
inet_listener imaps {
#port = 993