Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi2: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
Nächste Überarbeitung Beide Seiten, nächste Überarbeitung
lpi2:postfix-dovecot-imapd [2014/02/27 00:07]
ingo_wichmann
lpi2:postfix-dovecot-imapd [2019/10/30 11:15]
ingo_wichmann [dovecot Konfiguration]
Zeile 2: Zeile 2:
 Vorraussetzung:​ [[postfix]] Vorraussetzung:​ [[postfix]]
  
-===== Einfach: Maildir ​===== +===== Speicherformat für Mails ===== 
-==== Postfix ​Maildir ​Konfiguration ====+Mails im Maildir-Format speichern: ((alternative Möglichkeiten:​ https://​wiki.dovecot.org/​MailboxFormat))
  
-''​/etc/postfix/main.cf''​ : ( Debian 5.0, openSuSE 12.1 ) +<file txt /etc/dovecot/conf.d/10-mail.conf> 
-<​file>​+… 
 +mail_location = maildir:​~/​Maildir 
 + 
 +</file> 
 + 
 +=== prüfen === 
 +  doveconf mail_location 
 + 
 +===== Einfach: Postfix und dovecot speichern beide in Maildir ===== 
 +==== dovecot Konfiguration ==== 
 +[[#​speicherformat_fuer_mails|siehe oben]] 
 +==== Postfix Konfiguration ==== 
 + 
 +<file txt /​etc/​postfix/​main.cf>​ 
 +
 home_mailbox = Maildir/ home_mailbox = Maildir/
 mailbox_command = mailbox_command =
 +
 </​file>​ </​file>​
 +=== prüfen ===
 +  postconf home_mailbox
 +  postconf mailbox_command
  
-===== Performanter:​ LMTP ===== +=== Testen mit mutt === 
-Pakete: +<file txt ~/​.muttrc>​ 
-  * Debian (7): ''​dovecot-lmtpd''​ +set mbox_type=Maildir 
-==== Postfix ==== +set folder="​~/​Maildir/"​ 
-  ​postconf -e '​mailbox_transport ​lmtp:​unix:​private/dovecot-lmtp'​+set mbox="​~/​Maildir/"​ 
 +set spoolfile="​~/​Maildir/"​ 
 +</file>
  
-==== Dovecot ​2.0 ==== +===== Performanter:​ per LMTP von Postfix zu Dovecot ​===== 
-''/​etc/​dovecot/​conf.d/​10-master.conf''​ : ( openSuSE 12.1 ) +=== Pakete === 
-<​file>​+Debian (ab 7): ''​dovecot-lmtpd''​ 
 + 
 +==== dovecot Konfiguration ==== 
 +Debian (ab 8): 
 +<file raw /​etc/​dovecot/​conf.d/​10-auth.conf> 
 +
 auth_username_format = %Ln auth_username_format = %Ln
 +
 +</​file>​
 +((''​auth_username_format''​ ist essentiell, weil [[wpde>​LMTP]] bei der Zustellung nach diesem Verzeichnis sucht. ​
 +* ''​L''​ = lowercase, email-Adresse wird in Kleinbuchstaben umgewandelt
 +* ''​n''​ = nur Benutzername ​
 +* ''​u''​ = komplette email-Adresse (Benutzername@domain) ​
 +Ersetzung siehe https://​doc.dovecot.org/​configuration_manual/​config_file/​config_variables/​
 +))
 +
 +openSuSE 12.1, debian (ab 8): 
 +<file raw /​etc/​dovecot/​conf.d/​10-master.conf>​
 +
 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>​
 +
 +==== Postfix Konfiguration ====
 +  postconf -e '​mailbox_transport = lmtp:​unix:​private/​dovecot-lmtp'​
 +
 ====== Dokumentation ====== ====== Dokumentation ======
   * http://​wiki2.dovecot.org/​HowTo/​PostfixDovecotLMTP   * http://​wiki2.dovecot.org/​HowTo/​PostfixDovecotLMTP
lpi2/postfix-dovecot-imapd.txt · Zuletzt geändert: 2024/04/25 09:04 (Externe Bearbeitung)