Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


fortgeschrittene:postfix-dovecot-imapd

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
fortgeschrittene:postfix-dovecot-imapd [2009/05/06 11:01]
127.0.0.1 Externe Bearbeitung
fortgeschrittene:postfix-dovecot-imapd [2025/08/30 09:57] (aktuell)
ingo_wichmann
Zeile 1: Zeile 1:
-====== ​Installation ​dovecot-imapd ​in Kombination ​mit postfix ​====== +====== ​postfix und dovecot-imapd mit LMTP verbinden ​====== 
-Vorraussetzung: [[postfix]]+Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]]
  
 +Vorraussetzung:​
 +  * [[dovecot]] ( Paket ''​dovecot-imapd''​ Version 2.4 soll installiert sein )
 +  * [[postfix]] ( Paket ''​postfix''​ soll installiert sein )
  
 +=== Pakete ===
 +Debian: ''​dovecot-lmtpd''​
  
-===== Postfix Maildir Konfiguration ​=====+===== Speicherformat für Mails ===== 
 +Mails im Maildir-Format speichern: ((Maildir ist nicht das von dovecot bevorzugte Format. Alternative Möglichkeiten:​ https://​doc.dovecot.org/​2.4.1/​core/​config/​mailbox_formats/​maildir.html#​maildir-mailbox-format))
  
-''​/etc/postfix/main.cf''​ : ( Debian 5.0 ) +<file txt /etc/dovecot/local.conf
-<file+… 
-home_mailbox ​Maildir+mail_driver ​maildir 
-mailbox_command ​=+mail_path = %{home}/Maildir 
 +mail_inbox_path ​.  
 +
 </​file>​ </​file>​
  
 +=== prüfen ===
 +  doveconf mail_driver
 +  doveconf mail_path
 +  doveconf mail_inbox_path
  
 +===== per LMTP von Postfix zu Dovecot =====
 +==== dovecot Konfiguration ====
 +<file txt /​etc/​dovecot/​local.conf>​
 +
 +#​auth_username_format = %{user | username | lower } # already set similar in /​etc/​dovecot/​conf.d/​20-lmtp.conf,​ but for lmtp only?
 +
 +</​file>​
 +
 +<file raw /​etc/​dovecot/​local.conf>​
 +
 +service lmtp {
 +  unix_listener /​var/​spool/​postfix/​private/​dovecot-lmtp {
 +    user = postfix
 +    group = postfix
 +    mode = 0660
 +  }
 +}
 +
 +</​file>​
 +
 +Konfiguration prüfen:
 +  doveconf protocols
 +-> gibt u.a. aus: ''​lmtp''​
 +  doveconf -n
 +
 +Dienst neu starten:
 +  systemctl restart dovecot.service
 +
 +Prüfen, ob dovecot den Socket angelegt hat:
 +  namei -l /​var/​spool/​postfix/​private/​dovecot-lmtp
 +  lsof /​var/​spool/​postfix/​private/​dovecot-lmtp
 +-> ''​TYPE''​ ... ''​unix''​
 +==== Postfix Konfiguration ====
 +  postconf -e '​mailbox_transport = lmtp:​unix:​private/​dovecot-lmtp'​
 +
 +=== Testen ===
 +Auf dem Client:
 +  swaks -f test@lxht.de -t testuser@klaus-1.lxht.de -s klaus-1.lxht.de
 +-> ''​250 2.0.0 Ok: queued as B0EF53FA42''​
 +
 +Auf dem Server:
 +  journalctl -g B0EF53FA42
 +-> ''​postfix/​lmtp[…]:​ B0EF53FA42: to=<​testuser@klaus-1.lxht.de>,​ relay=klaus-1.lxht.de[private/​dovecot-lmtp],​…,​ status=sent''​
 +
 +====== Dokumentation ======
 +  * https://​doc.dovecot.org/​2.4.1/​core/​config/​delivery/​lmtp.html#​lmtp-server
fortgeschrittene/postfix-dovecot-imapd.1241607664.txt.gz · Zuletzt geändert: 2012/03/23 07:22 (Externe Bearbeitung)