Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44249 - mailutils wrong configure options
Summary: mailutils wrong configure options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 07:01 UTC by barthek
Modified: 2004-07-10 22:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barthek 2004-03-10 07:01:13 UTC
mailutils-0.3.1 ebuild's one of the configure options is:
--disable-sendmail. this options makes 'mail' utility useless,
it is qutting with error: 'sendmail:/usr/sbin/sendmail' not found.

i am using postfix as MTA, removing --disable-sendmail option
makes 'mail' work ok, using postfix's /usr/sbin/sendmail replacement.

additionaly, why does this ebuild require guile unconditionally ? shouldnt it be implemented as a USE flag?
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-07-08 21:22:38 UTC
please take a look at bug #37302. Are you missing /etc/mail.rc?
Comment 2 barthek 2004-07-09 14:06:33 UTC
i have mail.rc file, although i dont have entry which is being suggested
by new mailutils ebuild (sendmail stuff). thanks for the reference :)

what about guile though ? are there any cons for creating a new USE flag ?
Comment 3 barthek 2004-07-09 15:26:50 UTC
im affraid setting sendmail in mail.rc doesnt work as it should.
i put this in my mail.rc:
set sendmail="/usr/sbin/sendmail" ask askcc append dot save crt verbose
i use postfix as a MTA
when i send mail with mail, it makes it to the postfix queue,
but is being sent back with 'no recipients specified' error.
i simply use mail email@address and ctrl D afterwards

BTW why the '-disable-sendmail' option is being used? 
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-07-09 19:15:50 UTC
I can't reproduce here. My setup:

# which sendmail
/usr/sbin/sendmail
# ls -lh $(which sendmail)
-rwxr-xr-x  1 root root 110K Jul  8 21:55 /usr/sbin/sendmail
# qpkg -f $(which sendmail)
mail-mta/postfix *

[ebuild   R   ] mail-mta/postfix-2.1.3  +ipv6 +ldap -mailwrapper -mbox +mysql +pam -postgres +sasl +ssl +vda

[ebuild   R   ] net-mail/mailutils-0.5  +gdbm +mysql +nls +pam -postgres

$ cat /etc/mail.rc
set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via

$ mail langthang@gentoo.org
Cc:
Subject: test
This is a test.
.

everything is default except /etc/mail.rc (shamlessly steal from mailx;) )

As for guile, please read http://www.gnu.org/software/mailutils/manual/html_node/mailutils_30.html#SEC69.
I think it would be more complicated than just a guile USE flag. You are more than welcomed to attached an ebuild diff. If it works, we will patch it in.
Comment 5 barthek 2004-07-10 03:44:59 UTC
it doesnt work this way for me :|

# ls -lh $(which sendmail)
-rwxr-xr-x  1 root root 118K Jul  5 12:17 /usr/sbin/sendmail
# qpkg -f $(which sendmail)
mail-mta/postfix *

[ebuild   R   ] mail-mta/postfix-2.1.3  -ipv6 -ldap -mailwrapper +mbox -mysql +pam -postgres -sasl +ssl -vda  2,532 kB
[ebuild   R   ] net-mail/mailutils-0.5  -gdbm -mysql -nls +pam -postgres  0 kB 

# cat /etc/mail.rc
set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via

# mail kewler@compfor.pl
Cc: 
Subject: test
test
.
sh: line 1: sendmail:/usr/sbin/sendmail: No such file or directory

after adding set sendmail="/usr/sbin/sendmail" to mail.rc:
mail kewler@compfor.pl
Cc: 
Subject: test
test
.
root@felix etc # 

BUT from postfix logfile:
Jul 10 12:43:58 felix postfix/cleanup[16290]: 306553CC19: to=<unknown>, relay=none, delay=0, status=bounced (No recipients specified)

what the heck? :\
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-07-10 22:26:25 UTC
I was be able to reproduce this on the other system. Only two peoples with postfix as MTA having the same problem, so I only enable-sendmail if postfix is detected. I do not know enough about mailutils to enable-sendmail as default which may affect other user using other MTA. The side affect is if you emerge this package while you are using something other than postfix as a MTA, then later replace it with postfix, you have to emerge mailutils again. Hope that someone in that situation will find this bug.
BTW, mail.rc is now come with the ebuild.

Cheers,
Tuan