VEGAS/mail: switch fail2ban jails to submodule style

This commit is contained in:
Max Headroom 2023-12-02 01:14:52 +01:00
parent d378ff9d06
commit fe49607203
2 changed files with 5 additions and 8 deletions

View file

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

View file

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