Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sendmail / mailutils error while calling sendmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gRRosminet
n00b
n00b


Joined: 11 Feb 2006
Posts: 19

PostPosted: Fri Mar 31, 2006 10:54 am    Post subject: sendmail / mailutils error while calling sendmail Reply with quote

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
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Mar 31, 2006 11:42 am    Post subject: Reply with quote

You have ran etc-update and source /etc/profile to get changes etc effectuated ?

What does "which sendmail" show ?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Fri Mar 31, 2006 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
gRRosminet
n00b
n00b


Joined: 11 Feb 2006
Posts: 19

PostPosted: Fri Mar 31, 2006 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
jonner
n00b
n00b


Joined: 25 Jul 2002
Posts: 42

PostPosted: Tue Jun 06, 2006 8:39 am    Post subject: mailwrapper is the culprit Reply with quote

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
View user's profile Send private message
gRRosminet
n00b
n00b


Joined: 11 Feb 2006
Posts: 19

PostPosted: Tue Jun 06, 2006 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
jonner
n00b
n00b


Joined: 25 Jul 2002
Posts: 42

PostPosted: Sat Jun 10, 2006 11:37 pm    Post subject: mailwrapper Reply with quote

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
View user's profile Send private message
gRRosminet
n00b
n00b


Joined: 11 Feb 2006
Posts: 19

PostPosted: Sun Jun 11, 2006 8:52 am    Post subject: Reply with quote

I never had it :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum