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).
Created attachment 86227 [details] The elog module
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).
i have testet mod_mailcommand with netqmail http://packages.gentoo.org/packages/?category=mail-mta;name=netqmail as mta. It works fine.
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.
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.
This has been released in 2.1.1_pre1.