Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132385

Summary: mod_mailcommand -- Enhance elog with local mail delivery program capabilities
Product: Portage Development Reporter: René Nussbaumer (RETIRED) <killerfox>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    
Attachments: The elog module

Description René Nussbaumer (RETIRED) gentoo-dev 2006-05-05 14:17:39 UTC
mod_mailcommand do the same as mod_mail but in a local manner. It opens a sendmail compliant programm and pipes the mail to it. So there's no need for an SMTP.

The environement variables has some enhancements:

PORTAGE_ELOG_MAILCOMMAND="/usr/bin/sendmail"
Command to be used to send the mail.

PORTAGE_ELOG_MAILRECIPIENT="foo@bar.tld[ foo2@bar.tld]*"
Recipient(s) of the mail. More than one address is supported.

PORTAGE_ELOG_MAILFROM and PORTAGE_ELOG_MAILSUBJECT are the same as in mod_mail.

The advantages of this module are: No need to set up and configure an SMTP (as relay), also if it only delivers mails to localhost.

Feedback would be nice :-). (This is my second python program).
Comment 1 René Nussbaumer (RETIRED) gentoo-dev 2006-05-05 14:19:01 UTC
Created attachment 86227 [details]
The elog module
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2006-05-05 14:30:40 UTC
Already have a modified version of mod_mail to do that (for glsa-check, see tail of d.g.o/~genone/temp/glsa-check), gonna refactor the mail code out so it can be used by both elog and glsa-check.
Has to wait for 2.2 though (2.1 is in feature freeze).
Comment 3 Frank Schmitt 2006-05-05 15:10:14 UTC
i have testet mod_mailcommand with netqmail http://packages.gentoo.org/packages/?category=mail-mta;name=netqmail as mta. It works fine.
Comment 4 Frank Schmitt 2006-05-05 15:11:02 UTC
i have testet mod_mailcommand on a sparc with netqmail http://packages.gentoo.org/packages/?category=mail-mta;name=netqmail as mta. It works fine.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-06-10 15:50:50 UTC
I've extended the mail module so that I can take a sendmail compatible binary instead of a mailserver in PORTAGE_ELOG_MAILRUI in svn r3486.
Comment 6 Zac Medico gentoo-dev 2006-06-16 10:01:25 UTC
This has been released in 2.1.1_pre1.