This ebuild provides a mini-qmail installation. This provides a virtual/mta for clients which forward all mail to a centralized qmail server for processing. This differs from the ssmtp package in that it uses qmail's QMQP protocol rather than smtp. See http://cr.yp.to/qmail/mini.html for more information.
Created attachment 9675 [details] mini-qmail-0.52.ebuild ebuild for mini-qmail
Created attachment 9676 [details] mini-qmail/files/0.52/99mini-qmail env.d file which protects (CONFIG_PROTECT) /var/mini-qmail/control
Created attachment 9677 [details] mini-qmail/files/errno.patch patch to fix errno problems with qmail and the latest glibc
One thing I forgot. Unlike qmail, mini-qmail doesn't require any new passwd or group entries (qmaild, qmails, qmaill, etc.). No daemons are run and no setuid executables are required for mini-qmail, so all the qmail password entries are unnecessary.
Ok, I played with this, and dug around at it. I then recalled seeing a better implementation of the idea and dug it up, and added that to portage instead. It is 'nullmailer' by Bruce Guenter. I strongly recommend that you look at that instead. (I'm now using nullmailer instead of ssmtp on 12 production servers, with no problems at all.)
Looks like a great solution! I'm installing it now, but it certainly looks much, much cleaner than the mini-qmail hack. Thanks!