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-1.7.3.tar.bz2 bunzip2 courier-imap-1.7.3.tar.bz2 tar -xvf courier-imap-1.7.3.tar cd courier-imap-1.7.3
Create install script
cat > ../courier.Build #! /bin/sh RANLIB="ranlib -c" CFLAGS="-traditional-cpp" CXXFLAGS="-traditional-cpp" export RANLIB export CFLAGS export CXXFLAGS ./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
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-1.7.3/authlib/authtest /usr/local/lib/courier-imap/libexec/authlib