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):
For Intel:
./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include
For PowerPC
./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include
Followed by:
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



4:09 am
Running into this error:
configure: error: –with-authmysql specified but no mysqlclient.so
Haven’t been able to track this problem down anywhere. Some *much* older posts for RHEL, FreeBSD but nothing in those posts that have led to a solution here.
Any ideas?
6:51 am
@Erich, did you compile both for the same architecture?
1:33 pm
Well, after your note, I used the following and it configures with no issues.
MACOSX_DEPLOYMENT_TARGET=10.5
CFLAGS=”-arch x86_64 -g -Os -pipe -no-cpp-precomp” \
CCFLAGS=”-arch x86_64 -g -Os -pipe” \
CXXFLAGS=”-arch x86_64 -g -Os -pipe” \
LDFLAGS=”-arch x86_64 -bind_at_load” \
export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET
./configure –with-authmysql \
–without-authpam \
–with-mysql-libs=/usr/local/mysql/lib/mysql \
–with-mysql-includes=/usr/local/mysql/include
1:37 pm
Thank you for letting me know you’ve solved it. Looks like you missed the page:
building the courier auth-library in 64 bits