about summary refs log tree commit diff stats
path: root/modules/by-name/ma/mail/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-30 13:09:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-30 13:13:33 +0200
commitfacdbe215ae2221cd31003627901803baca5db8f (patch)
treeb1c6c69b03cff2f42628e8c79e3dd823e5349f3d /modules/by-name/ma/mail/module.nix
parentmodules/mail: Actually set the uid/gid of the virtualMail user (diff)
downloadnixos-server-facdbe215ae2221cd31003627901803baca5db8f.zip
modules/mail: Avoid changing the `virtualMail` user uid
We would need to set the `vmailUID` option to this value and even then
some parts of SNM would still hardcode the default of 5000.

Considering that we are in the process of phasing out SNM, this does not
seem to be a worthwhile endeavour.
Diffstat (limited to '')
-rw-r--r--modules/by-name/ma/mail/module.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/by-name/ma/mail/module.nix b/modules/by-name/ma/mail/module.nix
index d458291..4df3b1d 100644
--- a/modules/by-name/ma/mail/module.nix
+++ b/modules/by-name/ma/mail/module.nix
@@ -156,13 +156,11 @@ in {
         knot-resolver.uid = config.vhack.constants.ids.uids.knot-resolver;
         redis-rspamd.uid = config.vhack.constants.ids.uids.redis-rspamd;
         rspamd.uid = config.vhack.constants.ids.uids.rspamd;
-        virtualMail.uid = lib.mkForce config.vhack.constants.ids.uids.virtualMail;
       };
       groups = {
         knot-resolver.gid = lib.mkForce config.vhack.constants.ids.gids.knot-resolver;
         redis-rspamd.gid = config.vhack.constants.ids.gids.redis-rspamd;
         rspamd.gid = config.vhack.constants.ids.gids.rspamd;
-        virtualMail.gid = lib.mkForce config.vhack.constants.ids.gids.virtualMail;
       };
     };
   };