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 [2019/10/30 10:23]
ingo_wichmann [Dovecot Maildir Konfiguration]
lpi2:postfix-dovecot-imapd [2023/12/07 13:33]
ingo_wichmann [dovecot Konfiguration]
Zeile 1: Zeile 1:
 ====== postfix und dovecot-imapd verbinden ====== ====== postfix und dovecot-imapd verbinden ======
-Vorraussetzung:​ [[postfix]]+Vorraussetzung:​ 
 +  * [[dovecot]]  
 +  * [[postfix]] 
 + 
 +===== Speicherformat für Mails ===== 
 +Mails im Maildir-Format speichern: ((alternative Möglichkeiten:​ https://​wiki.dovecot.org/​MailboxFormat))
  
-===== Einfach: Maildir ===== 
-==== Dovecot Maildir Konfiguration ==== 
 <file txt /​etc/​dovecot/​conf.d/​10-mail.conf>​ <file txt /​etc/​dovecot/​conf.d/​10-mail.conf>​
  
Zeile 10: Zeile 13:
 </​file>​ </​file>​
  
-  service dovecot reload 
 === prüfen === === prüfen ===
   doveconf mail_location   doveconf mail_location
  
-==== Postfix Maildir Konfiguration ====+===== Einfach: ​Postfix ​und dovecot speichern beide in Maildir ​===== 
 +==== dovecot Konfiguration ==== 
 +[[#​speicherformat_fuer_mails|siehe oben]] 
 +==== Postfix ​Konfiguration ====
  
-''​/​etc/​postfix/​main.cf''​ : ( Debian ab 5.0, openSuSE 12.1 ) +<file txt /​etc/​postfix/​main.cf> 
-<​file>​+
 home_mailbox = Maildir/ home_mailbox = Maildir/
 mailbox_command = mailbox_command =
 +
 </​file>​ </​file>​
 +=== prüfen ===
 +  postconf home_mailbox
 +  postconf mailbox_command
  
 === Testen mit mutt === === Testen mit mutt ===
Zeile 30: Zeile 39:
 </​file>​ </​file>​
  
-===== Performanter:​ LMTP =====+===== Performanter: ​per LMTP von Postfix zu Dovecot ​=====
 === Pakete === === Pakete ===
-Debian (7): ''​dovecot-lmtpd''​+Debian (ab 7): ''​dovecot-lmtpd''​
  
-==== Dovecot 2.x ==== +==== dovecot Konfiguration ​==== 
-Debian 8 )+Debian ​(ab 8):
 <file raw /​etc/​dovecot/​conf.d/​10-auth.conf>​ <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))+</​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/​ 
 +)
 +  doveconf auth_username_format
  
-openSuSE 12.1, debian 8 )\\+openSuSE 12.1, debian ​(ab 8)
 <file raw /​etc/​dovecot/​conf.d/​10-master.conf>​ <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>​
  
-( openSUSE Leap 42.1, debian 8 )\\ +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>​ +  ​doveconf ​-n
-mail_location = maildir:​~/​Maildir +
-</​file>​+
  
-==== Postfix ====+Dienst neu starten: 
 +  systemctl restart dovecot.service 
 + 
 +Prüfen, ob dovecot den Socket angelegt hat: 
 +  ls -l /​var/​spool/​postfix/​private/​dovecot-lmtp 
 + 
 +==== Postfix ​Konfiguration ​====
   postconf -e '​mailbox_transport = lmtp:​unix:​private/​dovecot-lmtp'​   postconf -e '​mailbox_transport = lmtp:​unix:​private/​dovecot-lmtp'​
  
 +===== Trusted Networks =====
 +Zu Testzwecken das eigene Netz als ''​mynetworks''​ eintragen, also statt /32 ein /24
 +
 +  postconf mynetworks
 +  mynetworks='​127.0.0.1/​32 192.168.225.102/​32 [::1]/128 [fe80::​5054:​ff:​fe00:​102]/​12'​
 +  postconf mynetworks='​127.0.0.1/​32 192.168.225.0/​24 [::1]/128 [fe80::​5054:​ff:​fe00:​102]/​12'​
 ====== 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)