The Courier authentication library will serve our purpose by separating the user authentication from the OS X user administration into a standalone user administration based on a MySQL database. You can find the software and documentation from the Courier authentication library web-site. Check the blog for the latest supported version.

Extract the source archive in a directory, open a Terminal session, change the directory to the one you extracted the archive in and type in the following commands as a normal user (please note that the configure command will run for quite some time):

./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \

Followed by:

Issue the install command when the compilation has finished:

sudo make install

If you are building a fresh installation run the following command to create new configuration files. Do not run it if you are just upgrading to a new version.

sudo make install-configure

Next step: Building the Courier IMAP/POP3 Server in 32 bits on Leopard