add fail2ban rules for dovecot and postfix

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-24 10:23:40 +01:00
parent 63868eb38c
commit 052bde2a56
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -3,5 +3,17 @@
enable = true;
bantime-increment.enable = true;
bantime-increment.maxtime = "48h";
jails = {
dovecot = ''
enabled = true
filter = dovecot
action = iptables-multiport[name=dovecot, port="pop3,pop3s,imap,imaps", protocol=tcp]
'';
postfix = ''
enabled = true
filter = postfix
action = iptables-multiport[name=postfix, port="imap,imaps,submission", protocol=tcp]
'';
};
};
}