From 7d1622f3e5db18b40cab6cecfd3c2f1fab20d782 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 2 Dec 2013 20:18:28 +0100 Subject: Configure the IMAP server. (For now, only LMTP and IMAP processes, without replication.) --- roles/common/templates/etc/fail2ban/jail.local.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles/common/templates/etc/fail2ban') diff --git a/roles/common/templates/etc/fail2ban/jail.local.j2 b/roles/common/templates/etc/fail2ban/jail.local.j2 index b92cb7a..96f2d6b 100644 --- a/roles/common/templates/etc/fail2ban/jail.local.j2 +++ b/roles/common/templates/etc/fail2ban/jail.local.j2 @@ -61,3 +61,13 @@ filter = postfix logpath = /var/log/mail.log maxretry = 10 {% endif %} + + +{% if 'IMAP' in group_names %} +[dovecot] + +enabled = true +port = imap2,imap3,imaps,pop3,pop3s +filter = dovecot +logpath = /var/log/mail.log +{% endif %} -- cgit v1.2.3