git.iko.soy/typeable/nixpkgs
on master help sign in
dovecot: dovenull user should have its own group.

Quoting from https://wiki.dovecot.org/UserIds#dovenulluser: "It should belong to its own private dovenull group where no one else belongs to..."

commitfa388534e4a74f4055643e5ed85c95ee4148eda4 authorDrew Hess <src@drewhess.com> dateMon 22 Oct 2018, 13:57 (8 years ago) parent01fcaf8
2 files changed+6−2
nixos/modules/misc/ids.nix+1−1 nixos/modules/services/mail/dovecot.nix+5−1
nixos/modules/misc/ids.nix+1−1
@@ -385,7 +385,7 @@
385385 virtuoso = 44;
386386 #rtkit = 45; # unused
387387 dovecot2 = 46;
388− #dovenull = 47; # unused
388+ dovenull2 = 47;
389389 prayer = 49;
390390 mpd = 50;
391391 clamav = 51;
nixos/modules/services/mail/dovecot.nix+5−1
@@ -311,7 +311,7 @@ in
311311 { name = "dovenull";
312312 uid = config.ids.uids.dovenull2;
313313 description = "Dovecot user for untrusted logins";
314− group = cfg.group;
314+ group = "dovenull";
315315 }
316316 ] ++ optional (cfg.user == "dovecot2")
317317 { name = "dovecot2";
@@ -332,6 +332,10 @@ in
332332 }
333333 ++ optional (cfg.createMailUser && cfg.mailGroup != null)
334334 { name = cfg.mailGroup;
335+ }
336+ ++ singleton
337+ { name = "dovenull";
338+ gid = config.ids.gids.dovenull2;
335339 };
336340
337341 environment.etc."dovecot/modules".source = modulesDir;