Merge pull request #119582 from helsinki-systems/fix/dovecot-systemUser

nixos/dovecot: set isSystemUser for mailUser
This commit is contained in:
Guillaume Girol 2021-04-16 07:10:19 +00:00 committed by GitHub
commit f02d9c6626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,7 @@ in
};
} // optionalAttrs (cfg.createMailUser && cfg.mailUser != null) {
${cfg.mailUser} =
{ description = "Virtual Mail User"; } // optionalAttrs (cfg.mailGroup != null)
{ description = "Virtual Mail User"; isSystemUser = true; } // optionalAttrs (cfg.mailGroup != null)
{ group = cfg.mailGroup; };
};

View File

@ -8,6 +8,8 @@ import ./make-test-python.nix {
enable = true;
protocols = [ "imap" "pop3" ];
modules = [ pkgs.dovecot_pigeonhole ];
mailUser = "vmail";
mailGroup = "vmail";
};
environment.systemPackages = let
sendTestMail = pkgs.writeScriptBin "send-testmail" ''