fail2ban: setup postfix and dovecot #76

Merged
rouven0 merged 1 commit from fail2ban-mail into main 2023-10-20 12:27:59 +02:00

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
'';
}; };
}; };