Courier is one of the most well-known mail-sending agents. It only supports mailboxes in Maildir format and can be integrated with external databases (LDAP, MySQL, etc.). You can find a complete description of how to install a virtual Postfix+courier messaging system in POSTFIXCOMPLETEVIRTUALMAILSYSTEMHOWTO. This article describes the basic installation of courier, the implementation of forwarding mail to the local presence of users, mailbox settings in the home folder. Notably, Courier supports user accounts in NFS file systems (which is also a major advantage of courier).
Installation
The packages that are installed courier need to be installed are: Courier-imap and Courier-imap-ssl (see Installingsoftware).
If you want to support POP3, you need to install Courier-pop and Courier-pop-ssl.
Configuration
All configuration options are in/ETC/COURIER/IMAPD and/etc/courier/imapd-ssl, which are used to configure the IMAP daemon, which is used to configure the Imap-ssl daemon. If you are installing for the first time, the default configuration will be a good fit for most of your needs without any modification.
Certification
Courier's authentication uses Pam and does not require any configuration to use.
Mail directory settings
Typically, the mail directory is set up under the user's home folder. This can be convenient later http://www.aliyun.com/zixun/aggregation/18538.html "> The creation of the mail directory when new users:
Maildirmake/etc/skel/maildir
maildirmake/etc/skel/maildir/. Drafts
maildirmake/etc/skel/maildir/. Sent
maildirmake/etc/skel/maildir/. Trash
maildirmake/etc/skel/maildir/. Templates
For existing users:
Cp-r/etc/skel/maildir/home/myuser/
Chown-r Myuser:usergroup/home/myuser/maildir
Chmod-r 700/home/myuser/maildir
Test
You can easily test whether the program after the installation works:
telnet localhost IMAP
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is ' ^] '.
* OK [CAPABILITY imap4rev1 uidplus CHILDREN NAMESPACE thread=orderedsubject thread=references SORT QUOTA ACL IDLE UNION STARTTLS] Courier-imap ready. Copyright 1998-2004 Double Precision, Inc. COPYING for distribution information.
IMAP Login User Password
IMAP OK LOGIN OK.
Where user and password are local accounts with a mailing directory. If you are unable to work, you will see the error message and don't forget to view the log information/var/log/mail.log.
Management and Maintenance
No additional work is required to manage courier Imap/pop Mail servers. Each connected user corresponds to a process of the system (actually each open mail directory corresponds to a process). If you are considering a backup, you usually need to back up the user's account information.