Richard
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. Please note that this is the 64 bit mode installation which requires a 64 bit MySQL installation otherwise you will get compiler errors.
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):
For Intel use:
CFLAGS="-arch x86_64" \
CXXFLAGS="-arch x86_64" \
./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include/mysql
For PowerPC use
CFLAGS="-arch ppc64" \
CXXFLAGS="-arch ppc64" \
./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include/mysql
Follow for both with:
Issue the install command when the compilation has finished:
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.
Next step: Building the Courier IMAP/POP3 server in 64 bits on Leopard



Comments
2:37 pm
When trying to configure for Mac 10.6 i get an error. The last lines of the output are:
checking for mysql_config… /usr/bin/mysql_config
checking for mysql_connect… no
checking for mysql_real_connect… no
configure: error: –with-authmysql specified but no mysqlclient.so
I have followed the instructions to the tee so far (I think). Is there an entry to a config file some where I need to change? Any other ideas, please? Can I go forward and install the remaining components to get the mail server running without the courier auth and then go back and fix it?
3:28 pm
@Lewis, I’ve not used Courier on 10.6 since I’ve switched to Dovecot some time ago. Dovecot performs a lot better then the Courier software stack. These instruction here are only for 10.5 and are there for historic reasons.
4:47 pm
Thank you. I’ll try the Dovecot install and see what happens.