Courierpasswd

Introduction

A very common set-up for mail services is a qmail mailserver together with courier-imapd (for imap and pop3) and maybe Squirrelmail (for webmail). The only thing that is missing is a proper user management ...

When I set up my system I firstly looked at vpopmail, but it was far to complex for my needs. Especially as couier-imapd is already providing a nice user management within authdaemon.mysql. This only missing thing is a way to do qmail AUTH and changing passwords. And that's where courierpasswd comes into place.

courierpasswd (written by Andrew St. Jean) is a DJB checkpassword on the one side and an interface to courier-imapd's authdaemon on the other side. It can either read usename and passwords from FD3 or from stdin and checks the input with the authdaemon, which itself is able to use a lot of sources including mysql, ldap, passwd, ...

Update (2005-10-06)

Some tests showed that it's no longer necessary to patch the Gentoo courier-imap ebuild to work with courierpasswd. The courier-imap setup has been split into net-libs/courier-authlib and net-mail/courier-imap. Courierpasswd has been modified to work together with authlib.

To use courierpasswd you just need to emerge courier-authlib, courier-imap and courierpasswd. Currently the courierpasswd ebuild is not yet included in Gentoo. You can download it from below and put it in you portage overlay.

Downloads

Some download to use courierpasswd with Gentoo and Squirrelmail:

courierpasswd-ebuild-1.1.0-RC1.tar.gz is the complete courierpasswd folder for your portage overlay. I suggest to extract it in portage/net-mail/.

I hope this ebuild will be added to the Gentoo portage tree in the future. The current status is available on bugs.gentoo.org.

courierchange_pass-1.1.tar.gz is a plugin for Squirrelmail that uses courierpasswd to change a users password.

History

These files are no longer necessary as some major changes have been done to courier-imap and courierpasswd. Use the files from the download section above!

courier-imap-3.0.7-courierpasswd.patch is a patch to the courier-imap ebuild. It introduces a new USE flag 'courierpasswd' that activates all necessary functionality. Changes are:

- installation of needed header and libs for courierpasswd to compile
- installation of authdaemon.passwd, necessary for password changes
- activation of --with-authchangepwdir

I submitted a request to bugs.gentoo.org to add this patch, but I have no idea how this will turn out. If you want you can download the complete patched courier-imap-3.0.7.ebuild from here as well.