Mailserver with ldap tutorial – part 2: dovecot

After we’ve setup openldap in part 1, I’m going to describe in this post how to setup dovecot. In our mailserver dovecot will have three tasks: it provides access to the mailboxes via imaps, it will destribute the mails accepted by postfix to the mailboxes (local deliviery agent) and it will provide an authentication interface for postfix

This is step 2 of the 8 step tutorial for setting up a mailserver with openldap, postfix and dovecot using virtual users. You can find the overview here.
I’m assuming that all commands are executed with root rights.

Continue reading “Mailserver with ldap tutorial – part 2: dovecot”

Mailserver with ldap tutorial – part 1: openldap

In this post I’m going to describe how to setup openldap as a user database for my mailserver where also the maildomains, addresses and -boxes are stored.

This is step 1 of the 8 step tutorial for setting up a mailserver with openldap, postfix and dovecot using virtual users. You can find the overview here.
I’m asuming that all commands are executed with root rights. Of course you might also use sudo.

Continue reading “Mailserver with ldap tutorial – part 1: openldap”

mailserver with ldap tutorial – overview

In this post I’m going to describe setting up a mail server using postfix, dovecot and LDAP with virtual mailboxes.
Although I’m extending extend my current mail server configuration ( ) by using LDAP as single point of administration I’m going to describe the complete setup. I did this for testing on clean debian squeeze virtual box. The documentation of my configuration is mainly for myself to remember,. But as it might help others with their configuration I’m publishing it.
When developing this config I was mainly inspired by the configuration by Michael Hammer.

The steps for configuring the server are:

  1. Setting up LDAP
  2. Setting up dovecot
  3. Setting up postfix
  4. Testing
  5. Setting up virus and spam protection
  6. Setting up filtering
  7. Setting up mobile access
  8. Setting up web acccess

These steps I will describe in detail in several post over the next days.