diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-05-23 13:27:31 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-05-23 13:29:41 +0200 |
commit | 61ee02ffb5402d93eae59001b91197957a8dcfe2 (patch) | |
tree | 61942115319da2cb843f045cdcbbf5b58102c191 /roles | |
parent | 2b50c65c042718d04a3b0ce660afda5ba19ec9b4 (diff) |
dovecot: don't listen on the IP dedicated for IPSec when there is a single host.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/IMAP/templates/etc/dovecot/conf.d/10-master.conf.j2 | 4 |
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 |