View previous topic :: View next topic |
Author |
Message |
gRRosminet n00b
Joined: 11 Feb 2006 Posts: 19
|
Posted: Fri Mar 31, 2006 10:54 am Post subject: sendmail / mailutils error while calling sendmail |
|
|
Hi,
I've installed sendmail and mailutils and when I try to send a mail, using the "mail" command I get an error
Here is a copy of my terminal :
Code: | tc@SERVDB2 tc $ mail toto@titi.com
Cc:
Subject: test
azerazerazer
azerazer
sh: line 1: sendmail:/usr/sbin/sendmail: No such file or directory |
Thanks for your ideas.
About my system :
Code: | * mail-mta/sendmail
Latest version available: 8.13.4
Latest version installed: 8.13.4
Size of downloaded files: 1,928 kB
Homepage: http://www.sendmail.org/
Description: Widely-used Mail Transport Agent (MTA)
License: Sendmail
* net-mail/mailutils
Latest version available: 0.6-r2
Latest version installed: 0.6-r2
Size of downloaded files: 1,977 kB
Homepage: http://www.gnu.org/software/mailutils/mailutils.html
Description: A useful collection of mail servers, clients, and filters.
License: GPL-2 LGPL-2.1
|
|
|
Back to top |
|
|
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Fri Mar 31, 2006 11:42 am Post subject: |
|
|
You have ran etc-update and source /etc/profile to get changes etc effectuated ?
What does "which sendmail" show ? |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Fri Mar 31, 2006 11:51 am Post subject: |
|
|
fvant wrote: | You have ran etc-update and source /etc/profile to get changes etc effectuated ?
What does "which sendmail" show ? | @gRRosminet: Run this command as root to see a reasonable output. |
|
Back to top |
|
|
gRRosminet n00b
Joined: 11 Feb 2006 Posts: 19
|
Posted: Fri Mar 31, 2006 12:06 pm Post subject: |
|
|
fvant wrote: | You have ran etc-update and source /etc/profile to get changes etc effectuated ?
What does "which sendmail" show ? |
Yes, I did source the profile
the which command returns : /usr/sbin/sendmail
I think that the "mail" binary tries to execute "sendmail:/usr/sbin/sendmail" and that's why I get the "No such file or directory" error. This must be a configuration problem, but I can't find what. |
|
Back to top |
|
|
jonner n00b
Joined: 25 Jul 2002 Posts: 42
|
Posted: Tue Jun 06, 2006 8:39 am Post subject: mailwrapper is the culprit |
|
|
I believe the mailwrapper use flag on mailutils is the culprit. I installed mailutils with that flag enabled, but didn't install the mailwrapper package and experienced exactly the same problem ("sendmail:/usr/sbin/sendmail: No such file or directory"). I realized I didn't need the mailwrapper use flag, since I didn't intend to install more than one MTA simultaneously. I disabled the use flag, reinstalled mailutils, and now it works as expected. It may also work fine with the mailwrapper use flag when the mailwrapper package is installed and configured correctly.
This is just another example of Gentoo's configurability combined with my lack of in-depth knowledge biting me. Actually I think that in this case, mailutils should probably depend on mailwrapper when the use flag of the same name is enabled. |
|
Back to top |
|
|
gRRosminet n00b
Joined: 11 Feb 2006 Posts: 19
|
Posted: Tue Jun 06, 2006 9:33 am Post subject: |
|
|
Has I don't have mailwrapper I have tried to see where it was added to the use flag. I didn't find it (/etc/make.conf , /etc/make.globals , /etc/make.profile/make.defaults ). So i have added "-mailwrapper" on the use flag in /etc/make.conf and re-emerged mailutils but I still have the same error ... |
|
Back to top |
|
|
jonner n00b
Joined: 25 Jul 2002 Posts: 42
|
Posted: Sat Jun 10, 2006 11:37 pm Post subject: mailwrapper |
|
|
Well, did you have the mailwrapper use flag enabled when you emerged mailutils before? I did, so I disabled it and re-emerged mailutils. If you never had the mailwrapper use flag enabled, then you probably have a different problem |
|
Back to top |
|
|
gRRosminet n00b
Joined: 11 Feb 2006 Posts: 19
|
Posted: Sun Jun 11, 2006 8:52 am Post subject: |
|
|
I never had it |
|
Back to top |
|
|
|