2022-06-12 15:42:42 +00:00
|
|
|
_: {
|
2022-01-15 11:57:44 +00:00
|
|
|
services.fail2ban = {
|
|
|
|
enable = true;
|
|
|
|
bantime-increment.enable = true;
|
|
|
|
bantime-increment.maxtime = "48h";
|
2022-05-24 09:23:40 +00:00
|
|
|
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]
|
|
|
|
'';
|
|
|
|
};
|
2022-01-15 11:57:44 +00:00
|
|
|
};
|
|
|
|
}
|