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.
This commit is contained in:
parent
a517dfcf71
commit
89eccb7fb0
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue