email: restart daily, shhould minimise permission issues

This commit is contained in:
silver 2023-07-16 03:23:47 +01:00
parent ad6280189b
commit dbc7aa8690

View file

@ -14,6 +14,8 @@
imports = [
./dns.nix
./acme.nix
./nginx.nix
];
options.services.skynet_email = {
@ -119,6 +121,12 @@
};
};
systemd.services.dovecot2.serviceConfig = {
# restart it daily, override default values
Restart = lib.mkForce "always";
RestartSec = lib.mkForce "1d";
};
mailserver = {
enable = true;
fqdn = "${cfg.sub}.${cfg.domain}";