Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mailutils: use system-sendmail instead of sendmailPath #54049

Merged
merged 1 commit into from Feb 7, 2019

Conversation

Ekleog
Copy link
Member

@Ekleog Ekleog commented Jan 16, 2019

system-sendmail allows all sendmail's to be auto-detected, including on
non-NixOS systems. This is, to me, a better UX than having to manually
override the sendmailPath argument.

In exchange, it is a breach of retro-compatibility. Given right now I
can't see any uses for sendmailPath other than what is supported by
system-sendmail, I didn't keep it, but it'd be possible to allow
sendmailPath to override the choice of sendmail from system-sendmail.

Fixes #40871

Built on NixOS.

cc @orivej @vrthra

@grahamc
Copy link
Member

grahamc commented Jan 16, 2019

Will it work on non-systemd systems?

@grahamc
Copy link
Member

grahamc commented Jan 16, 2019

@GrahamcOfBorg eval

@Ekleog
Copy link
Member Author

Ekleog commented Jan 16, 2019

@grahamc system-sendmail is unrelated to systemd, it's a script defined at https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/mail/system-sendmail/default.nix#L4-L15 , introduced with discussion at #49228 (basically, it sucks, but there are little better alternatives)

system-sendmail allows all sendmail's to be auto-detected, including on
non-NixOS systems. This is, to me, a better UX than having to manually
override the sendmailPath argument.

In exchange, it is a breach of retro-compatibility. Given right now I
can't see any uses for sendmailPath other than what is supported by
system-sendmail, I didn't keep it, but it'd be possible to allow
sendmailPath to override the choice of sendmail from system-sendmail.
@Ekleog Ekleog merged commit a6abec9 into NixOS:master Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants