Home > Gentoo > Gentoo ebuild for qmail with JMS1 combined patch

Gentoo ebuild for qmail with JMS1 combined patch

April 16th, 2009

In a previous post, I introduced a patch to add DKIM and DomainKeys support to Qmail with John Simpson’s combined patch. In this post I’ll introduce the ebuild I wrote (well, modified) to allow easily installing qmail-jms1 on a Gentoo system.

Though this ebuild makes installing qmail with John’s patch a little easier, it doesn’t make administering a qmail system child’s play. Before merging this ebuild, you should read through John’s website. You may also want to read about netqmail on Gentoo. While this ebuild has nothing to do with netqmail, it does borrow some the conventions presented in the Gentoo doc concerning starting, stopping and controlling qmail.

I didn’t include any of John’s run scripts or configuration files. Only the combined patch is applied to the base qmail image. I’ve also included some additional patches I’ve found useful. They are described in more detail on my qmail patches page. Most of my extra patches are controlled by use flags (dkim, ipv6) and not applied by default.

For the impatient, here is a direct link to the ebuild:
http://svn.bltweb.net/repos/public/gentoo_overlay/mail-mta/qmail-jms1/qmail-jms1-7.08-r1.ebuild

Install my portage overlay

The easiest way to use the qmail-jms1 ebuild is to use my Gentoo Portage Overlay. Please see the overlay page for instructions on how to set it up.

You will need the following ebuilds from my overlay:

Install Qmail

Once the overlay is set up, installing qmail-jms1 is easy.

Add the following to your /etc/portage/package.keywords file:

mail-mta/qmail-jms1
sys-apps/ucspi-tcp
mail-filter/libdkim
# You may also need these:
net-mail/dot-forward
sys-process/daemontools
sys-apps/ucspi-ssl
virtual/checkpassword
net-mail/checkpassword-pam

Now install qmail-jms1:

$ emerge -pv qmail-jms1
$ sudo emerge qmail-jms1

Configure Qmail

Yeah right… There is plenty of documentation elsewhere for this. Try John’s website.

Start Qmail

# ln -s /var/qmail/supervise/qmail-send /service/qmail-send
# ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd
# rc-update add svscan default
# /etc/init.d/svscan start

 
 
That’s all I have for now. Installing, configuring and administering qmail should not be taken lightly. This ebuild has made it easier for me to set up and maintain my servers, however you should only consider using it if you are already familiar with setting up a qmail server.

Feel free to leave any comments, suggestions or problems below!

Brandon Gentoo , , , ,

  1. No comments yet.
  1. No trackbacks yet.