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?
please take a look at bug #37302. Are you missing /etc/mail.rc?
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 ?
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?
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.
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? :\
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