CentOS
yum -y install pam-devel
cd /root
wget -O imap_php.sh files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
./imap_php.sh
supports both CustomBuild 1.x and 2.x.
For CB2, it will automatically detect the configure.phpX path.
Note that this is beyond our technical support.
Check IMAP in PHP status
Note that version 1.2 of this script now supports the ability to call it like this:
./imap_php.sh –check
where the exit code will be 0 if everything has imap compiled in, else 1 should any of the libc-client.a be missing, or any of the active php versions not have IMAP c-Client compiled into the php -i output.
old related guide:
http://www.directadmin.com/imap.txt