Courier Imap 2.2.1 on OSXS 10.3 (Panther)

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.2.1.tar.bz2
bunzip2 courier-imap-2.2.1.tar.bz2
tar -xvf courier-imap-2.2.1.tar
cd courier-imap-2.2.1

Create install script

cat > ../courier.Build
#! /bin/sh
RANLIB="ranlib -c"
CFLAGS="-traditional-cpp"
CXXFLAGS="-traditional-cpp"
export RANLIB
export CFLAGS
export CXXFLAGS
CC=gcc3 ./configure            \
--prefix=/usr/courier-imap     \
--with-waitfunc=wait3          \
--enable-mimetypes             \
--without-ipv6                 \
--with-authpwd                 \
--with-authcustom              \
--with-authpam                 \
--without-authldap             \
--without-authcram             \
--enable-workarounds-for-imap-client-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
sudo cp /etc/pam.d/sshd /etc/pam.d/imap
cp /Users/courier/courier-imap-2.2.1/authlib/authtest  /usr/courier-imap/libexec/authlib

here are the commands to start, stop and test authentication

/usr/courier-imap/libexec/authlib/authdaemond start

/usr/courier-imap/libexec/pop3d.rc start
/usr/courier-imap/libexec/imapd.rc start

/usr/courier-imap/libexec/pop3d.rc stop
/usr/courier-imap/libexec/imapd.rc stop

cd /usr/courier-imap/libexec/authlib/
./authtest -s pop3 courier

and this should be the result of this test:

Authenticated: module authdaemon
Home directory: /Users/courier
UID/GID: 100/100
AUTHADDR=courier
AUTHFULLNAME=courier