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

'mail' from mailutils hardcodes /usr/sbin/sendmail #21008

Closed
bjornfor opened this issue Dec 8, 2016 · 13 comments
Closed

'mail' from mailutils hardcodes /usr/sbin/sendmail #21008

bjornfor opened this issue Dec 8, 2016 · 13 comments
Assignees
Milestone

Comments

@bjornfor
Copy link
Contributor

bjornfor commented Dec 8, 2016

... rendering the 'mail' command not working on NixOS.

Last bug report for today :-)

@globin globin added this to the 17.03 milestone Jan 11, 2017
@mogria
Copy link
Contributor

mogria commented Feb 16, 2017

Well which sendmail should be used then? sendmail is provided by busybox, exim, postfix & ssmtp.
Should the installed one be used?

@bjornfor
Copy link
Contributor Author

@mogria: I'd go for $PATH lookup at runtime.

@peterhoeg
Copy link
Member

peterhoeg commented Apr 6, 2017

Please leave this alone until tomorrow as I'm giving a talk on NixOS and will be fixing this as part of it.

@peterhoeg peterhoeg self-assigned this Apr 6, 2017
@mogria
Copy link
Contributor

mogria commented Apr 6, 2017 via email

@orivej orivej mentioned this issue Jul 23, 2017
8 tasks
@fpletz fpletz modified the milestones: 17.09, 17.03 Jul 25, 2017
@unode
Copy link
Member

unode commented Jan 14, 2018

Any fix in the works @peterhoeg ? Just hit this seeing:

Cannot open mailer: No such file or directory
cannot send message: No such file or directory

@unode
Copy link
Member

unode commented Jan 14, 2018

Also am I wrong in interpreting this as a regression of #3619 ?

@bjornfor
Copy link
Contributor Author

Oh, I didn't know we previously had hardcoded the sendmail path. Apparently that was removed in 27a9ef8.

@bjornfor
Copy link
Contributor Author

@vrthra: Do you remember why you removed sendmailPath from mailutils? (Commit message doesn't say.)

@bjornfor
Copy link
Contributor Author

I asked upstream about looking up sendmail in $PATH: https://www.mail-archive.com/[email protected]/msg01740.html

@vrthra
Copy link
Member

vrthra commented Jan 14, 2018

@bjornfor I think this was a mistake in my commit.

@unode
Copy link
Member

unode commented Jan 15, 2018

I can confirm that manually applying the changes introduced in #3619 works around the Cannot open mailer problem.

Having postfix configured locally I then ran into a problem of /var/spool/mail/user being a file instead of a folder (mbox vs maildir format?) leading to failed deliveries.
Removing the location manually and re-sending a message to this user allowed postfix to recreate the location in the correct format, solving the issue.

@unode
Copy link
Member

unode commented Jan 15, 2018

@bjornfor
Copy link
Contributor Author

Fixed by b2b44c9.

bjornfor pushed a commit that referenced this issue Apr 13, 2018
Re-apply patch originally introduced in 23da6f9 ("mailutils: fix
for sendmail path"), fixing regression introduced in 27a9ef8
("mailutils: fix build break").

Fixes #21008.
Closes #38708.

[Bjørn: modify/extend commit message.]
bjornfor pushed a commit that referenced this issue Apr 13, 2018
Re-apply patch originally introduced in 23da6f9 ("mailutils: fix
for sendmail path"), fixing regression introduced in 27a9ef8
("mailutils: fix build break").

Fixes #21008.
Closes #38708.

[Bjørn: modify/extend commit message.]

(cherry picked from commit b2b44c9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants