summaryrefslogtreecommitdiff
path: root/modules/postfix-mta-sts-resolver.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/postfix-mta-sts-resolver.nix')
-rw-r--r--modules/postfix-mta-sts-resolver.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/postfix-mta-sts-resolver.nix b/modules/postfix-mta-sts-resolver.nix
index 52439659..86804758 100644
--- a/modules/postfix-mta-sts-resolver.nix
+++ b/modules/postfix-mta-sts-resolver.nix
@@ -53,12 +53,18 @@ in {
53 after = mkIf cfg.redis [ "redis-postfix-mta-sts-resolver.service" ]; 53 after = mkIf cfg.redis [ "redis-postfix-mta-sts-resolver.service" ];
54 54
55 serviceConfig = { 55 serviceConfig = {
56 Type = "notify";
56 ExecStart = "${pkgs.postfix-mta-sts-resolver}/bin/mta-sts-daemon -v ${cfg.loglevel} -c ${pkgs.writeText "mta-sts-daemon.yml" (generators.toYAML {} cfg.settings)}"; 57 ExecStart = "${pkgs.postfix-mta-sts-resolver}/bin/mta-sts-daemon -v ${cfg.loglevel} -c ${pkgs.writeText "mta-sts-daemon.yml" (generators.toYAML {} cfg.settings)}";
57 SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user; 58 Restart = "always";
59 KillMode = "process";
60 TimeoutStartSec = 10;
61 TimeoutStopSec = 30;
62
58 RuntimeDirectory = "postfix-mta-sts-resolver"; 63 RuntimeDirectory = "postfix-mta-sts-resolver";
59 64
60 User = "postfix-mta-sts-resolver"; 65 User = "postfix-mta-sts-resolver";
61 Group = "postfix-mta-sts-resolver"; 66 Group = "postfix-mta-sts-resolver";
67 SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user;
62 68
63 RemoveIPC = true; 69 RemoveIPC = true;
64 PrivateTmp = true; 70 PrivateTmp = true;