Merge pull request #76 from fsr/fail2ban-mail

fail2ban: setup postfix and dovecot
This commit is contained in:
Rouven Seifert 2023-10-20 12:27:58 +02:00 committed by GitHub
commit a8d1444ef9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,17 @@
bantime = 25h bantime = 25h
action = iptables-allports[name=fail2banTOR, protocol=all] action = iptables-allports[name=fail2banTOR, protocol=all]
''; '';
dovecot = ''
enabled = true
# aggressive mode to add blocking for aborted connections
filter = dovecot[mode=aggressive]
maxretry = 3
'';
postfix = ''
enabled = true
filter = postfix[mode=aggressive]
maxretry = 3
'';
}; };
}; };