The Exchange Server Replacement HOWTO

Curt Johnson

CEO
Array Services, Inc.

cjohnson@arrayservices.com

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
New Versions of this Document
Feedback
Further Reading
2. Software
Cyrus IMAP Server
Sendmail
OpenLDAP
GQ LDAP GUI
PAM LDAP module
3. Installation
RPM
Cyrus IMAP Server
OpenLDAP
LDAP libraries for pam_ldap
PAM LDAP module
Sendmail
GQ LDAP GUI
4. Configuration
DNS
inetd.conf
Open LDAP configuration
ldap startup script
slapd.conf
Initial LDIF File and ldapadd
ldappasswd: Setting user passwords
pam_ldap Configuration Files
/etc/ldap.conf
imap and pop files
Cyrus IMAP configuration
imapd.conf
imap directories under /var
setting up logging for cyrus
cyradm: adding mail users
POP3 accounts
Sendmail Configuration
Sendmail.mc
Directing system account mail to the cyrus mailer
Restarting and monitoring sendmail
GQ LDAP GUI setup
Adding a Server
Testing
5. Adding Mail Accounts
Creating an LDAP entry
Creating from a template
Lost entries
Adding a password
Creating the cyrus mailbox
cyradm
(Optional) Adding POP3 access
Testing the new account
Sendmail
IMAP
POP3
6. Conclusion
Today
Benefits
Drawbacks
Tomorrow
7. Acknowledgements