[Nix-dev] My Hydra can't send mail
Bas van Dijk
v.dijk.bas at gmail.com
Tue Jan 5 21:40:44 CET 2016
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 <simons at cryp.to> 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
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list