On Wednesday 08 February 2006 01:31, Harm Geerts wrote: > From http://bugs.gentoo.org/show_bug.cgi?id=116637#c2 > """ > this bug hit me too, however i was not able to fix it with your patch. i > think this is because of line 48 in mod_mail.py: > > myconn.sendmail("portage", myrecipient, mymessage.as_string()) > > as you see, portage is still hardcoded there. I replaced it with > "[EMAIL PROTECTED]" and got my mails :) > """ > > The system sends the mail to "portage", but it requires a FQDN. > It seems this is not automatically expanded to "portage@<localdomain>" > > So I doubt hostname -d has any effect on it, but I haven't actually checked > the code). You could do the same as Simon and replace "portage" with a > valid email address untill this is fixed.
Hi Harm I didn't read the comments to the bug quite carefully enough to understand them until I saw this reply... So what Alessandros proposed patch did was enable the user (i.e. me) to set the return-path of the mail by specifying PORTAGE_ELOG_MAILFROM in /etc/make.conf. What Simon apparently did was hardcode the from address in the code directly. Sooo... made this patch which allows the user to set both return-path and from address by specifying PORTAGE_ELOG_MAILFROM in make.conf: http://bugs.gentoo.org/attachment.cgi?id=79186 It does, however, seem quite clear that this wasn't the way the mail module was originally intended to work. But it does solve the problem. :) Thanks to everyone who has replied to this thread. -- Bo Andresen -- gentoo-user@gentoo.org mailing list