Release
 

Part 12 - Installing Courier IMAP & IMAP SSL
(Debian)

Now that you have Qmail up and running, we're going to add a few extras onto it. For starters, we're going to install Courier IMAP & IMAP SSL. This will, obviously, enable IMAP connections to the mail server and it is a necessary ingredient for most popular web based mail clients such as Horde, SQwebmail and Squirrelmail. Courier IMAP is the preferred IMAP server to install because it has built in support the vchkpw mail user setup that Vpopmail utilizes. In short, Courier IMAP works with Vpopmail and virtual domains.

So let's install it....

apt-get install courier-imap-ssl

Note 1: You may get a message stating that imap is already installed. I like to be safe, so on my Debian box I uninstalled imap with the command "apt-get remove courier-imap-ssl" and then reinstalled it with the above command

Note 2: You may get asked if you want a bunch of dependencies installed. Just answer yes (Y).

cd /etc/courier

vi imapd

change AUTHMODULES="authdaemon to AUTHMODULES="authvchkpw"

change AUTHMODULES_ORIG="authdaemon" to AUTHMODULES_ORIG="authvchkpw"

vi imapd-ssl

make sure IMAPDSSLSTART=YES

Save and exit.

Special note for people running a small home or office network:

If you are planning on having multiple users connect to your IMAP server from a single IP address, such as in a small home or office network, you may want to increase the "MAXPERIP" setting with the /usr/local/etc/imapd config file. This setting establishes the maximum number of IMAP connections that can be made from a single IP address. An example of this might be if you have a small office network runing on a single DSL or Cable IP address and your mail server is outside of that network. While each computer in your internal network may have it's own private IP address, to the outside world anyone coming from your network has the single routeable IP address assigned to your DSL or Cable connection. The default setting for "MAXPERIP" is 4 so f you have a similar network setup and more than 4 people trying to access your IMAP server, you may want to increase this setting accordingly to avoid connection errors. Within the /usr/local/etc/imapd file, the line you are looking for looks like this:

MAXPERIP=4

Now let's restart all the IMAP related services...

cd /etc/init.d

./courier-imap stop

./courier-authdaemon stop

./courier-imap-ssl stop

./courier-imap start

./courier-authdaemon start

./courier-imap-ssl start

If you've got "nmap" installed, run the command "nmap localhost". You should see both 143 and 993 now open and listening.

Now let's test it...

telnet localhost 143

Trying 192.168.1.10...
Connected to 192.168.1.10.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
a login postmaster@mydomain.com my_password
a OK LOGIN Ok. (successful login!)
a logout (logs you out)
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Connection closed by foreign host.

Hint: The "a" that you see before my login commands is required.

If you were able to log in , as in the example above, you're all set. IMAP is installed!

Proceed to Part 13


 

Color Coded Qmail Installation Key
 
Regular Black Text 
 Qmail installation notes and summaries by the author. Me talking.
 
Bold Black Text 
 Commands to be run by you, the installer.
 
Bold Maroon Text 
 Special notes for Redhat 9 users.
 
Bold Red Text 
 Vital and/or critical information.
 
Regular/Bold Purple text 
 Denotes helpful tips and hints or hyperlinks.
 
Regular Orange Text 
 Command line output.
Cp

Regular green text 

 Denotes the contents of a file or script.
home | about | the installation | utilities | faq | contact | journal | mailing list | list archive | forum | links | donatemerchandise
modified
This mirror last modified: Thursday, August 9th, 2012 15:58:48 CEST
 
The Rocks Project