For a x86_64 system use the commands belowyum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
tar xzf imapback-2004c1-x86.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a
After that doyum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
tar xzf imapback-2004c1-x86_64.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a
Add now the lines below to the filecd /usr/local/directadmin/custombuild
cp -Rp configure custom
nano -w custom/ap2/configure.php5
Now it should look something like--with-pic \
--with-imap=/usr/local/imap-2004c1 \
--with-imap-ssl=/usr/local/imap-2004c1
Now save the file and do the commands below--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring \
--with-pic \
--with-imap=/usr/local/imap-2004c1 \
--with-imap-ssl=/usr/local/imap-2004c1
After this IMAP support (inclucing IMAP for SSL) should be installed.cd /usr/local/directadmin/custombuild/
./build clean
./build update
./build php n