VEGAS/mail: switch fail2ban jails to submodule style
This commit is contained in:
parent
d378ff9d06
commit
fe49607203
2 changed files with 5 additions and 8 deletions
|
@ -80,7 +80,5 @@ in {
|
||||||
|
|
||||||
systemd.services.dovecot2.serviceConfig.ExecStartPre = [ "${writeLdapConfig}/bin/write-ldap-config" ];
|
systemd.services.dovecot2.serviceConfig.ExecStartPre = [ "${writeLdapConfig}/bin/write-ldap-config" ];
|
||||||
|
|
||||||
services.fail2ban.jails.dovecot = ''
|
services.fail2ban.jails.dovecot = {};
|
||||||
enabled = true
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,9 +93,8 @@ in
|
||||||
systemd.services.postfix.after = [ "network-online.target" "network-addresses-${interfaces.primary.link}.service" "network-addresses-vstub.service" ];
|
systemd.services.postfix.after = [ "network-online.target" "network-addresses-${interfaces.primary.link}.service" "network-addresses-vstub.service" ];
|
||||||
systemd.services.postfix-setup.after = [ "network-online.target" "network-addresses-${interfaces.primary.link}.service" "network-addresses-vstub.service" ];
|
systemd.services.postfix-setup.after = [ "network-online.target" "network-addresses-${interfaces.primary.link}.service" "network-addresses-vstub.service" ];
|
||||||
|
|
||||||
services.fail2ban.jails.postfix = ''
|
services.fail2ban.jails.postfix.settings = {
|
||||||
enabled = true
|
mode = "aggressive";
|
||||||
mode = aggressive
|
findtime = "43200";
|
||||||
findtime = 43200
|
};
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue