Benutzer-Werkzeuge

Webseiten-Werkzeuge


server:dovecot

Dies ist eine alte Version des Dokuments!


Dovecot unter Debian 5.0

Dovecot unter Debian 5.0 als IMAP-Server einrichten:

Installation

  • Dovecot installieren:
# aptitude install dovecot-imapd

Konfiguration

  • Normales IMAP nur auf localhost anbieten, IMAP-over-SSL auf allen IPv4-Interfaces:
# vi /etc/dovecot/dovecot.conf
[...]
protocol imap {
  listen = 127.0.0.1
  ssl_listen = *
  • Klartext-Authentifizierung verbieten (eigentlich unnötig, weil ich ja nach außen nur IMAP-over-SSL anbiete):
# vi /etc/dovecot/dovecot.conf
[...]
disable_plaintext_auth = yes
  • Mailbox-Format auf Maildir umstellen:
# vi /etc/dovecot/dovecot.conf
[...]
mail_location = maildir:%h/Maildir
  • Verzeichnis für Zertifikat und privaten Schlüssel einrichten:
# mkdir /etc/dovecot/ssl
# chmod 700 /etc/dovecot/ssl
# chown root:root /etc/dovecot/ssl
  • Zertifikat und privaten Schlüssel kopieren und absichern:
# cp mail.disorganized.de.cert mail.disorganized.de.key /etc/dovecot/ssl
# chmod 444 /etc/dovecot/ssl/mail.disorganized.de.cert
# chown root:root ssl/mail.disorganized.de.cert
# chmod 400 /etc/dovecot/ssl/mail.disorganized.de.key
# chown root:root /etc/dovecot/ssl/mail.disorganized.de.key
  • SSL konfigurieren:
# vi /etc/dovecot/dovecot.conf
[...]
ssl_cert_file = /etc/dovecot/ssl/mail.disorganized.de.cert
ssl_key_file = /etc/dovecot/ssl/mail.disorganized.de.key
  • Authenifizierung gegen Exim-Kennwort-Datei.
    • Im Abschnitt auth default alle passdb- und userdb-Einträge auskommentieren und die unten gezeigten Einträge hinzufügen.
    • Den Benutzer von root auf Debian-exim ändern.
# vi /etc/dovecot/dovecot.conf
[...]
auth default {
[...]
  # passwd-like file with specified location
  # <doc/wiki/AuthDatabase.PasswdFile.txt>
  passdb passwd-file {
    # Path for passwd-file
    args = /etc/exim4/passwd
  }
[...]
  # passwd-like file with specified location
  # <doc/wiki/AuthDatabase.PasswdFile.txt>
  userdb passwd-file {
    # Path for passwd-file
    args = /etc/exim4/passwd
  }
[...]
  user = Debian-exim
server/dovecot.1266077403.txt.gz · Zuletzt geändert: 2010/02/13 17:10 von ewald