@@ -369,31 +369,30 @@ in
370 daemonType = "fork";
370 daemonType = "fork";
372− preStart =
372+ preStart = ''
374− if ! [ -d /var/spool/postfix ]; then
373+ if ! [ -d /var/spool/postfix ]; then
375− ${pkgs.coreutils}/bin/mkdir -p /var/spool/mail /var/postfix/conf /var/postfix/queue
374+ ${pkgs.coreutils}/bin/mkdir -p /var/spool/mail /var/postfix/conf /var/postfix/queue
378− ${pkgs.coreutils}/bin/chown -R ${user}:${group} /var/postfix
377+ ${pkgs.coreutils}/bin/chown -R ${user}:${group} /var/postfix
379− ${pkgs.coreutils}/bin/chown -R ${user}:${setgidGroup} /var/postfix/queue
378+ ${pkgs.coreutils}/bin/chown -R ${user}:${setgidGroup} /var/postfix/queue
380− ${pkgs.coreutils}/bin/chmod -R ug+rwX /var/postfix/queue
379+ ${pkgs.coreutils}/bin/chmod -R ug+rwX /var/postfix/queue
381− ${pkgs.coreutils}/bin/chown root:root /var/spool/mail
380+ ${pkgs.coreutils}/bin/chown root:root /var/spool/mail
382− ${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
381+ ${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
383− ${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/mail
382+ ${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/mail
385− ln -sf "${pkgs.postfix}/share/postfix/conf/"* /var/postfix/conf
384+ ln -sf "${pkgs.postfix}/etc/postfix/"* /var/postfix/conf
387− ln -sf ${aliasesFile} /var/postfix/conf/aliases
386+ ln -sf ${aliasesFile} /var/postfix/conf/aliases
388− ln -sf ${virtualFile} /var/postfix/conf/virtual
387+ ln -sf ${virtualFile} /var/postfix/conf/virtual
389− ln -sf ${mainCfFile} /var/postfix/conf/main.cf
388+ ln -sf ${mainCfFile} /var/postfix/conf/main.cf
390− ln -sf ${masterCfFile} /var/postfix/conf/master.cf
389+ ln -sf ${masterCfFile} /var/postfix/conf/master.cf
392− ${pkgs.postfix}/sbin/postalias -c /var/postfix/conf /var/postfix/conf/aliases
391+ ${pkgs.postfix}/sbin/postalias -c /var/postfix/conf /var/postfix/conf/aliases
393− ${pkgs.postfix}/sbin/postmap -c /var/postfix/conf /var/postfix/conf/virtual
392+ ${pkgs.postfix}/sbin/postmap -c /var/postfix/conf /var/postfix/conf/virtual
395− ${pkgs.postfix}/sbin/postfix -c /var/postfix/conf start
394+ ${pkgs.postfix}/sbin/postfix -c /var/postfix/conf start
398 preStop = ''
397 preStop = ''
399 ${pkgs.postfix}/sbin/postfix -c /var/postfix/conf stop
398 ${pkgs.postfix}/sbin/postfix -c /var/postfix/conf stop