From 53568f6d1f035b199faeb0afaa9171148e2f8861 Mon Sep 17 00:00:00 2001 From: r-raymond Date: Mon, 25 Jul 2016 17:14:18 +0200 Subject: [PATCH] set the correct permissions for vmail folder --- mail-server.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail-server.nix b/mail-server.nix index 908cac5..494e219 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -71,7 +71,10 @@ in }; # dovecot - services.dovecot2 = { + # set the correct permissions for dovecot vmail folder. see + # http://wiki2.dovecot.org/SharedMailboxes/Permissions + systemd.services.dovecot2.preStart = "chmod 02770 /var/vmail"; + services.dovecot2 = { enable = true; enableImap = enable_imap; enablePop3 = enable_pop3;