email: restart daily, shhould minimise permission issues
This commit is contained in:
parent
ad6280189b
commit
dbc7aa8690
1 changed files with 8 additions and 0 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue