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

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
fortgeschrittene:postfix-dovecot-imapd [2016/11/29 20:52]
stefan_miethke [Postfix Maildir Konfiguration]
fortgeschrittene:postfix-dovecot-imapd [2025/08/30 09:57] (aktuell)
ingo_wichmann
Zeile 1: Zeile 1:
-====== postfix und dovecot-imapd verbinden ====== +====== postfix und dovecot-imapd ​mit LMTP verbinden ====== 
-Vorraussetzung: [[postfix]]+Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]]
  
-===== EinfachMaildir ===== +Vorraussetzung
-==== Postfix Maildir Konfiguration ====+  * [[dovecot]] ( Paket ''​dovecot-imapd''​ Version 2.4 soll installiert sein ) 
 +  * [[postfix]] ( Paket ''​postfix''​ soll installiert sein )
  
-''​/​etc/​postfix/​main.cf''​ : ( Debian 5.0, openSuSE 12.1 +=== Pakete === 
-<​file>​ +Debian: ​''​dovecot-lmtpd''​ 
-home_mailbox = Maildir/ + 
-mailbox_command = +===== Speicherformat für Mails ===== 
-</file>+Mails im Maildir-Format speichern: ((Maildir ist nicht das von dovecot bevorzugte FormatAlternative Möglichkeiten:​ https://​doc.dovecot.org/​2.4.1/core/config/​mailbox_formats/​maildir.html#​maildir-mailbox-format))
  
-=== Testen mit mutt === +<file txt /etc/​dovecot/​local.conf
-<file txt ~/.muttrc+… 
-set mbox_type=Maildir +mail_driver ​maildir 
-set folder="~/Maildir/" +mail_path ​%{home}/Maildir 
-set mbox="​~/​Maildir/"​ +mail_inbox_path ​ 
-set spoolfile="​~/​Maildir/"​+
 </​file>​ </​file>​
  
-===== Performanter:​ LMTP ===== +=== prüfen ​=== 
-Pakete: +  ​doveconf mail_driver 
-  ​* Debian (7): ''​dovecot-lmtpd''​ +  ​doveconf mail_path 
-==== Postfix ==== +  ​doveconf mail_inbox_path
-  ​postconf -e '​mailbox_transport = lmtp:​unix:​private/​dovecot-lmtp'​+
  
-==== Dovecot ​2.0 / 2.0 ==== +===== per LMTP von Postfix zu Dovecot ​===== 
-( openSuSE 12.1 )\\ +==== dovecot Konfiguration ==== 
-auth_username_format ​ist essentiellweil LMTP bei der Delivery nach diesem Verzeichnis sucht!+<file txt /​etc/​dovecot/​local.conf> 
 +… 
 +#auth_username_format ​= %{user | username | lower } # already set similar in /​etc/​dovecot/​conf.d/​20-lmtp.confbut for lmtp only? 
 +… 
 +</​file>​
  
-<file raw /​etc/​dovecot/​conf.d/​10-master.conf> +<file raw /​etc/​dovecot/​local.conf> 
-auth_username_format = %Ln+
 service lmtp { service lmtp {
   unix_listener /​var/​spool/​postfix/​private/​dovecot-lmtp {   unix_listener /​var/​spool/​postfix/​private/​dovecot-lmtp {
 +    user = postfix
     group = postfix     group = postfix
     mode = 0660     mode = 0660
-    user = postfix 
   }   }
 } }
 +
 </​file>​ </​file>​
  
-( openSUSE Leap 42.1 )\\ +Konfiguration prüfen: 
-Existiert noch kein ''​~./Maildir''​, schlägt die storage auto detection von dovecot ​fehl+  ​doveconf protocols 
-<file raw /etc/dovecot/conf.d/10-mail.conf+-> gibt u.a. aus: ''​lmtp''​ 
-mail_location ​maildir:~/Maildir +  doveconf -n 
-</file>+ 
 +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 ====== ====== Dokumentation ======
-  * http://wiki2.dovecot.org/​HowTo/PostfixDovecotLMTP+  * https://doc.dovecot.org/​2.4.1/core/​config/​delivery/​lmtp.html#​lmtp-server
fortgeschrittene/postfix-dovecot-imapd.1480452743.txt.gz · Zuletzt geändert: 2016/11/29 20:52 von stefan_miethke