From 89eccb7fb0d10ae208df9b1c6eead8cbc654b32f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 4 Sep 2014 13:37:03 +0200 Subject: [PATCH] sudo: add sendmailPath option (defaults to /var/setuid-wrappers/sendmail) It currently seems impossible to make sudo send emails. No matter how much debugging I enable, sudo continues to be silent about sendmail. I tried setting "Defaults mailerpath=/var/setuid-wrappers/sendmail" but that too was completely ignored (except for logging that the variable mailerpath exists with the value I assigned to it...). This enables sendmail support and sets a default value that works on NixOS. --- pkgs/tools/security/sudo/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index ab46af5a1cd9..23b7241ace0f 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, coreutils, pam, groff }: +{ stdenv, fetchurl, coreutils, pam, groff +, sendmailPath ? "/var/setuid-wrappers/sendmail" +}: stdenv.mkDerivation rec { name = "sudo-1.8.10p3"; @@ -17,6 +19,7 @@ stdenv.mkDerivation rec { "--with-rundir=/var/run" "--with-vardir=/var/db/sudo" "--with-logpath=/var/log/sudo.log" + "--with-sendmail=${sendmailPath}" ]; postConfigure =