From 25fd508d17a5adfc5e3f8cc87d5d8dbd699a7de2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 21 Oct 2016 14:35:34 +0200 Subject: postfix_ssh --- hel.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hel.nix b/hel.nix index 1762d9c9..e7d61a3d 100644 --- a/hel.nix +++ b/hel.nix @@ -191,7 +191,7 @@ recipientDelimiter = "+"; extraMasterConf = '' uucp unix - n n - - pipe flags=Fqhu user=uucp argv=/var/setuid-wrappers/uux -z -a$sender - $nexthop!rmail ($recipient) - sshsendmail unix - n n - - pipe flags=Fqhu user=nobody:postfix argv=${pkgs.openssh}/bin/ssh -F /var/db/postfix/ssh.config $nexthop sendmail -f$sender ($recipient) + sshsendmail unix - n n - - pipe flags=Fqhu user=postfix_ssh argv=${pkgs.openssh}/bin/ssh -F /var/db/postfix_ssh/ssh.config $nexthop sendmail -f$sender ($recipient) ''; extraConfig = '' default_transport = uucp:ymir @@ -272,6 +272,11 @@ useDefaultShell = true; }; + extraUsers.postfix_ssh = { + isSystemUser = true; + home = "/var/db/postfix_ssh"; + }; + extraGroups = { network = {}; media = { -- cgit v1.2.3