From 61ee02ffb5402d93eae59001b91197957a8dcfe2 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 23 May 2016 13:27:31 +0200 Subject: dovecot: don't listen on the IP dedicated for IPSec when there is a single host. --- roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3