aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-24 00:39:13 +0100
committerGravatar Joe Banks <[email protected]>2024-08-24 00:48:18 +0100
commit8698f1584748ff95142a61de29192bfb855ea20a (patch)
treeddd4d92d722f4e7e9014977012e8fcde6c8bd5e8
parentClean up SASL logic from postfix (diff)
Add Dovecot to fail2ban config
-rw-r--r--ansible/roles/fail2ban/templates/jail.local.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/fail2ban/templates/jail.local.j2 b/ansible/roles/fail2ban/templates/jail.local.j2
index cb20542..3baccf2 100644
--- a/ansible/roles/fail2ban/templates/jail.local.j2
+++ b/ansible/roles/fail2ban/templates/jail.local.j2
@@ -43,4 +43,12 @@ enabled = true
maxretry = 3
bantime = 1d
backend = systemd
+
+[dovecot]
+enabled = true
+filter = dovecot[mode=normal]
+backend = systemd
+maxretry = 5
+findtime = 30m
+bantime = 2h
{% endif %}