Mailserver with ldap tutorial – part 6: sieve

Sometimes it is useful to have the mailserver sort mails in different folders – especially when you use different deveices to read your mail. You could have a folder spam for mails tagged as spam by spamassasin and mailinglists for mailinglist which you maybe don’t want to read on your smartphone. A nice and mighty way to do such filtering is to use sieve.

This is step 6 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.

Continue reading “Mailserver with ldap tutorial – part 6: sieve”

Mailserver with ldap tutorial – part 5: virus and spam protection

After I’ve described how to set up and test a mailserver with openldap, postfix and dovecot it still needs some basic filters for virus and spam protection.

This is step 5 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.

Continue reading “Mailserver with ldap tutorial – part 5: virus and spam protection”

Mailserver with ldap tutorial – part 4: testing

After I’ve described how to set up a mailserver with openldap, postfix and dovecot it’s now time to test it and make sure everything works.

This is step 4 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.

Continue reading “Mailserver with ldap tutorial – part 4: testing”

Mailserver with ldap tutorial – part 3: postfix

After we’ve setup openldap in part 1 and dovecot in part 2, I’m going to describe in this post how to setup postfix. Postfix will act as mail transport agent ie as the connection to the world for our mailserver.

This is step 3 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.

Continue reading “Mailserver with ldap tutorial – part 3: postfix”

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.