Courier Imap 2.1.2 on OSXS 10.2 (Jaguar)

This whole process requires:

Log-in via terminal:

login courier
password secret

Download, unpack .tar .gz archive and change directory:

curl -O http://osdn.dl.sourceforge.net/sourceforge/courier/courier-imap-2.1.2.tar.bz2
bunzip2 courier-imap-2.1.2.tar.bz2
tar -xvf courier-imap-2.1.2.tar
cd courier-imap-2.1.2

Create install script

cat > ../courier.Build
#! /bin/sh
RANLIB="ranlib -c"
CFLAGS="-traditional-cpp"
CXXFLAGS="-traditional-cpp"
export RANLIB
export CFLAGS
export CXXFLAGS
CC=gcc2 ./configure \
--prefix=/usr/local/lib/courier-imap \
--mandir=/usr/local/man \
--with-waitfunc=wait3 \
--enable-mimetypes \
--enable-unicode \
--with-authmysql \
--with-authldap \
--without-ipv6 \
--enable-workarounds-for-imap-clients-bugs

Do a "control C" to end the "cat >" process. That will create a file called courier.Build in the Courier User's folder.

chmod 775
../courier.Build
make
make check

Note - the --enable-workarounds-for-imap-client-bugs option to configure will result in make check FAILING.

su root
umask 022
make install

Or, make install-strip, to strip the executables and finally install configuration files.

make install-configure
cp /Users/courier/courier-imap-2.1.2/authlib/authtest  /usr/local/lib/courier-imap/libexec/authlib