Install Courier-IMAP
IMPORTANT :we need to su to normal user without root access in order to install courier imap
Example :
We will using "example" user
Extract Courier-IMAP
#cd /root/postfixrocks
#tar -xjf courier-imap-4.7.0.tar.bz2
#cd courier-imap-4.7.0
#mv courier-imap-4.7.0 /home/example/
#chown -R example:example /home/example
Change to example user
#su example
Configure Courier-IMAP
#cd /home/example/courier-imap-4.7.0
#./configure --prefix=/usr/local/courier
#make
#exit
Now we are using root access again
#cd /home/example/courier-imap-4.7.0
#make install
#make install-configure
Create imapd Certificate
#cd /usr/local/courier/share/
#./mkimapdcert