Thanks Eelco and Peter! I went with the solution from Peter because I had problems in the past with programs using ssmtp instead of postfix.
Cheers, Bas On 5 January 2016 at 13:09, Peter Simons <[email protected]> wrote: > 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 > > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
