From 256d2c75a6601abf17c32d6cc52832798c652dfb Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Sat, 2 Sep 2017 12:15:22 +0200 Subject: [PATCH] update comments --- mail-server/systemd.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mail-server/systemd.nix b/mail-server/systemd.nix index 817a760..c862b9e 100644 --- a/mail-server/systemd.nix +++ b/mail-server/systemd.nix @@ -56,18 +56,15 @@ let ''; in { - # Set the correct permissions for dovecot vmail folder. See - # . We choose - # to use the systemd service to set the folder permissions whenever - # dovecot gets started. + # Make sure postfix gets started first, so that the certificates are in place services.dovecot2.after = [ "postfix.service" ]; - # Check for certificate before both postfix and dovecot to make sure it - # exists. + # Create certificates and maildir folder services.postfix = { preStart = '' - # Create mail directory and set permissions + # Create mail directory and set permissions. See + # . mkdir -p "${mail_dir}" chgrp "${vmail_group_name}" "${mail_dir}" chmod 02770 "${mail_dir}" @@ -76,6 +73,7 @@ in ''; }; + # Create dkim certificates services.rmilter = { preStart = ''