From ea20d60ec13dea82f29269f7227a6241a4baa08d Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Thu, 22 Feb 2018 23:12:39 +0100 Subject: [PATCH] possible fix for #86 --- mail-server/users.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail-server/users.nix b/mail-server/users.nix index ef7d137..f335330 100644 --- a/mail-server/users.nix +++ b/mail-server/users.nix @@ -47,13 +47,13 @@ let if lib.isString sieveScript then '' if (! test -d "/var/sieve/${name}"); then mkdir -p "/var/sieve/${name}" - chown "${name}:${vmailGroupName}" "/var/sieve/${name}" + chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}" chmod 770 "/var/sieve/${name}" fi cat << 'EOF' > "/var/sieve/${name}/default.sieve" ${sieveScript} EOF - chown "${name}:${vmailGroupName}" "/var/sieve/${name}/default.sieve" + chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}/default.sieve" '' else '' if (test -f "/var/sieve/${name}/default.sieve"); then rm "/var/sieve/${name}/default.sieve"