The Exchange Server Replacement HOWTO

Curt Johnson

CEO
Array Services, Inc.

Edited by

Chuck Mead

Abstract

This document describes the installation and configuration of an IMAP and POP3 mail server using LDAP as the user database. Hopefully it will answer more questions than it creates. Improvements, constructive criticism, additions and corrections are gratefully accepted. Please mail your feedback to the author, with "Exchange Replacement HOWTO" in the subject.


Table of Contents
1. Introduction
1.1. New Versions of this Document
1.2. Feedback
1.3. Further Reading
2. Software
2.1. Cyrus IMAP Server
2.2. Sendmail
2.3. OpenLDAP
2.4. GQ LDAP GUI
2.5. PAM LDAP module
3. Installation
3.1. RPM
3.2. Cyrus IMAP Server
3.3. OpenLDAP
3.4. LDAP libraries for pam_ldap
3.5. PAM LDAP module
3.6. Sendmail
3.7. GQ LDAP GUI
4. Configuration
4.1. DNS
4.2. inetd.conf
4.3. Open LDAP configuration
4.3.1. ldap startup script
4.3.2. slapd.conf
4.3.3. Initial LDIF File and ldapadd
4.3.4. ldappasswd: Setting user passwords
4.4. pam_ldap Configuration Files
4.4.1. /etc/ldap.conf
4.4.2. imap and pop files
4.5. Cyrus IMAP configuration
4.5.1. imapd.conf
4.5.2. imap directories under /var
4.5.3. setting up logging for cyrus
4.5.4. cyradm: adding mail users
4.5.5. POP3 accounts
4.6. Sendmail Configuration
4.6.1. Sendmail.mc
4.6.2. Directing system account mail to the cyrus mailer
4.6.3. Restarting and monitoring sendmail
4.7. GQ LDAP GUI setup
4.7.1. Adding a Server
4.7.2. Testing
5. Adding Mail Accounts
5.1. Creating an LDAP entry
5.1.1. Creating from a template
5.1.2. Lost entries
5.1.3. Adding a password
5.2. Creating the cyrus mailbox
5.2.1. cyradm
5.2.2. (Optional) Adding POP3 access
5.3. Testing the new account
5.3.1. Sendmail
5.3.2. IMAP
5.3.3. POP3
6. Conclusion
6.1. Today
6.1.1. Benefits
6.1.2. Drawbacks
6.2. Tomorrow
7. Acknowledgements