diff options
author | 2024-08-16 20:20:26 +0100 | |
---|---|---|
committer | 2024-08-17 10:45:35 +0200 | |
commit | 48fbff92771ba8fcdda55d036e3f28e9639a02fd (patch) | |
tree | 15bd979899acc7e59a7b4bea9ea20e34e4eede1e /ansible | |
parent | Add Postfix to fail2ban jails (diff) |
Add SASL bans to Postfix fail2ban config
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/fail2ban/templates/jail.local.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/fail2ban/templates/jail.local.j2 b/ansible/roles/fail2ban/templates/jail.local.j2 index 399faf9..d606094 100644 --- a/ansible/roles/fail2ban/templates/jail.local.j2 +++ b/ansible/roles/fail2ban/templates/jail.local.j2 @@ -34,4 +34,11 @@ enabled = true maxretry = 3 bantime = 7d backend = systemd + +[postfix-sasl] +filter = postfix[mode=auth] +enabled = true +maxretry = 3 +bantime = 1d +backend = systemd {% endif %} |