Get imap c-client: cd /usr/local wget ftp://ftp.cac.washington.edu/imap/c-client.tar.Z tar xvfz c-client.tar.Z cd imap-2007f
Compile imap c-client: make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd IP6=4 echo "set disable-plaintext nil" > /etc/c-client.cf mkdir /usr/local/imap-2007f mkdir /usr/local/imap-2007f/include/ mkdir /usr/local/imap-2007f/lib/ chmod -R 077 /usr/local/imap-2007f rm -rf /usr/local/imap-2007f/include/* rm -rf /usr/local/imap-2007f/lib/* cp imapd/imapd /usr/sbin/ cp c-client/*.h /usr/local/imap-2007f/include/ cp c-client/*.c /usr/local/imap-2007f/lib/ cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a
Configuring php custom settings: mkdir -p custom/ap2 cp configure/ap2/configure.php5 custom/ap2 edit your custom/ap2/configure.php5 --with-imap=/usr/local/imap-2007f \ --with-imap-ssl \