From 2bb705da152a5213cbc879b425498f22d86ff341 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 2 Nov 2015 14:32:08 +0100 Subject: [PATCH] postfix: don't create a symlink inside of /var/spool/mail if /var/mail exists already --- nixos/modules/services/mail/postfix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix index e8beba4b3586..d1aaebdfdf24 100644 --- a/nixos/modules/services/mail/postfix.nix +++ b/nixos/modules/services/mail/postfix.nix @@ -380,7 +380,7 @@ in ${pkgs.coreutils}/bin/chmod -R ug+rwX /var/postfix/queue ${pkgs.coreutils}/bin/chown root:root /var/spool/mail ${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail - ${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/mail + ${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/ ln -sf "${pkgs.postfix}/etc/postfix/"* /var/postfix/conf