[Nix-dev] My Hydra can't send mail
Peter Simons
simons at cryp.to
Tue Jan 5 13:09:51 CET 2016
Eelco Dolstra writes:
> You probably need to change the line
>
> path = [ pkgs.nettools pkgs.ssmtp ];
>
> in the Hydra module to
>
> path = [ pkgs.nettools pkgs.postfix ];
>
> or something like that. Or maybe add the sendmail setuid wrapper to the path.
personally, I've found it useful to re-direct all users of ssmtp to
Postfix by including the following override in my configuration.nix
file:
nixpkgs.config = {
packageOverrides = pkgs: {
ssmtp = pkgs.stdenv.mkDerivation {
name = "sendmail-setuid-wrapper-0";
buildCommand = ''
mkdir -p $out/sbin
echo >$out/sbin/sendmail "#! $SHELL"
echo >>$out/sbin/sendmail 'exec /var/setuid-wrappers/sendmail "$@"'
chmod +x $out/sbin/sendmail
'';
};
};
};
That certainly works fine on hydra.cryp.to.
I hope this helps,
Peter
More information about the nix-dev
mailing list