wget http://optusnet.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.59.tar.bz2
tar -xjf courier-authlib-0.59.tar.bz2
chown -R root.root courier-authlib-0.59
cd courier-authlib-0.59
./configure --prefix=/usr/local/courier-authlib --without-authpam --without-authldap --without-authpwd --without-authmysql --without-authpgsql --without-authshadow --without-authuserdb --without-authcustom --without-authcram --without-authpipe --with-authdaemon --with-authvchkpw --with-redhat
make
make install
make install-configure
vi /usr/local/courier-authlib/etc/authlib/authdaemonrc
authmodulelist="authvchkpw"
cp courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib
chmod 744 /etc/rc.d/init.d/courier-authlib
chkconfig --add courier-authlib
/etc/rc.d/init.d/courier-authlib start
wget http://optusnet.dl.sourceforge.net/sourceforge/courier/courier-imap-4.1.2.tar.bz2
tar -xjf courier-imap-4.1.2.tar.bz2
chown -R root.root courier-imap-4.1.2
cd courier-imap-4.1.2
COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig CPPFLAGS=-I/usr/local/courier-authlib/include ./configure --prefix=/usr/local/courier-imap --disable-root-check --with-ssl --enable-unicode=iso-2022-jp,iso-8859-1,utf-8,iso-8859-10 --with-redhat
make
make install
make install-configure