Compiling Courier-Imap
The Courier IMAP server is a fast, scalable, enterprise IMAP server that uses Maildirs. Many E-mail service providers use the Courier IMAP server to easy handle hundreds of thousands of mail accounts. With its built-in IMAP and POP3 aggregation proxy, the Courier IMAP server has practically infinite horizontal scalability. In a proxy configuration, a pool of Courier servers service initial IMAP and POP3 connections from clients. They wait to receive the client's log in request, look up the server that actually holds this mail account's mailbox, and establish a proxy connection to the server, all in a single, seamless process. Mail accounts can be moved between different servers, to achieve optimum resource usage.IMPORTANT
We need to configure courier-imap with normal user or user without root access.
Previously we have created user "testing"
so we can use this user to configure courier-imap
Copy Courier-Imap Packages to /home/testing
cp /root/postfixrocks/courier-imap-4.7.0.tar.bz2 /home/testing
SU to "testing" user
su testing
cd /home/testing
tar -jxvf courier-imap-4.7.0.tar.bz2
cd courier-imap-4.7.0
./configure
Exit su "testing" and make with root
exit
make && make install
make install-configure
Edit imapd
vi /usr/lib/courier-imap/etc/imapd
#### modify few lines below ###
#### Change it from 1 to 0
IMAP_MAILBOX_SANITY_CHECK=0
### change it from no to yes ###
IMAPDSTART=YES
Starting up Courier-Imap
/usr/lib/courier-imap/libexec/imapd.rc start
Optional Step : Create Maildir to Home User
[Not necessary because if you set your mailserver up and running.
Maildir should be automatically created in your home dir /home/testing/Maildir]
This will require if postfix can't create a Maildir in user homedir.
Example :
user : testing
Homedir : /home/testing
/usr/lib/courier-imap/bin/maildirmake /home/testing/Maildir