Courier: Difference between revisions

From miki
Jump to navigation Jump to search
(Redirecting to IMAP)
 
No edit summary
Line 1: Line 1:
'''[http://www.courier-mta.org/imap/ Courier IMAP]''' is a fast, scalable, enterprise IMAP server that uses Maildirs.
#REDIRECT [[IMAP]]

== References ==
* [http://www.courier-mta.org/imap/ Courier IMAP homepage]
** [http://www.courier-mta.org/maildir.html maildir - E-mail directory]
** [http://www.courier-mta.org/FAQ.html Courier FAQ]
* On ''openSUSE'':
** Package doc at <tt>/usr/share/doc/packages/courier-authlib</tt> and <tt>/usr/share/doc/packages/courier-imap</tt>.
* On ''Ubuntu'':
** https://help.ubuntu.com/community/Courier
* Manpages & package documentation:
** [http://www.courier-mta.org/maildirmake.html maildirmake(1)]
** couriertcpd(1)
** imapd(8)
** userdb(8)
** makeuserdb(8)
** <tt>/usr/share/doc/courier-doc</tt> (on Ubuntu, with package '''courier-doc''' installed)

== Install ==
=== Ubuntu ===

To install Courier IMAP:
* Install the required packages:
{{pl2|<source lang="bash" enclose="prevalid">sudo apt-get install courier-imap courier-doc courier-imap-ssl</source>}}
* Create '''/etc/courier/userdb.dat'''
{{pl2|<source lang="bash" enclose="prevalid">
sudo su
pw2userdb >/etc/courier/userdb
chmod 600 /etc/courier/userdb
makeuserdb
maildirmake /etc/skel/Maildir # Create Maildir directory for all new users
</source>}}


To use the password from '''<tt>/etc/courier/userdb</tt>''' (and not from '''PAM''') (as root):
* Edit the file <tt>/etc/courier/authdaemonrc</tt>, and change it as follows:
{{pl2|<source lang="text">authmodulelist="authuserdb"</source>}}
* Restart the daemon:
{{pl2|<source lang="bash" enclose="prevalid">/etc/init.d/courier-authdaemon restart</source>}}
* Change the password for user '''username''' and commit the changes
{{pl2|<source lang="bash" enclose="prevalid">
userdbpw -md5 | userdb username set systempw
makeuserdb
</source>}}
* Test the new password with
{{pl2|<source lang="bash" enclose="prevalid">
nc imapserver 143
01 LOGIN username password
02 LOGOUT
</source>}}

=== OpenSUSE ===
Binary package for '''Courier IMAP''' is available on '''openSUSE''' (package '''courier-authlib''' and '''courier-imap'''). However it conflicts with the default IMAP server, ('''UW IMAP'''), which must first be uninstalled.

=== Cygwin ===
See the page dedicated to [[Courier Cygwin]].

Revision as of 15:16, 21 February 2011

Courier IMAP is a fast, scalable, enterprise IMAP server that uses Maildirs.

References

Install

Ubuntu

To install Courier IMAP:

  • Install the required packages:
sudo apt-get install courier-imap courier-doc courier-imap-ssl
  • Create /etc/courier/userdb.dat
sudo su
pw2userdb >/etc/courier/userdb
chmod 600 /etc/courier/userdb
makeuserdb
maildirmake /etc/skel/Maildir            # Create Maildir directory for all new users


To use the password from /etc/courier/userdb (and not from PAM) (as root):

  • Edit the file /etc/courier/authdaemonrc, and change it as follows:
authmodulelist="authuserdb"
  • Restart the daemon:
/etc/init.d/courier-authdaemon restart
  • Change the password for user username and commit the changes
userdbpw -md5 | userdb username set systempw
makeuserdb
  • Test the new password with
nc imapserver 143
01 LOGIN username password
02 LOGOUT

OpenSUSE

Binary package for Courier IMAP is available on openSUSE (package courier-authlib and courier-imap). However it conflicts with the default IMAP server, (UW IMAP), which must first be uninstalled.

Cygwin

See the page dedicated to Courier Cygwin.