Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi2:postfix-dovecot-imapd

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
lpi2:postfix-dovecot-imapd [2025/08/13 15:13] – Externe Bearbeitung 127.0.0.1lpi2:postfix-dovecot-imapd [2026/04/23 14:22] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-====== postfix und dovecot-imapd verbinden ======+====== postfix und dovecot-imapd mit LMTP verbinden ====== 
 +Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]] 
 Vorraussetzung: Vorraussetzung:
-  * [[dovecot]] ( Paket ''dovecot-imapd'' soll installiert sein )+  * [[dovecot]] ( Paket ''dovecot-imapd'' Version 2.4 soll installiert sein )
   * [[postfix]] ( Paket ''postfix'' soll installiert sein )   * [[postfix]] ( Paket ''postfix'' soll installiert sein )
 +
 +=== Pakete ===
 +Debian: ''dovecot-lmtpd''
  
 ===== Speicherformat für Mails ===== ===== Speicherformat für Mails =====
-Mails im Maildir-Format speichern: ((alternative Möglichkeiten: https://wiki.dovecot.org/MailboxFormat))+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))
  
 <file txt /etc/dovecot/local.conf> <file txt /etc/dovecot/local.conf>
 … …
-mail_location = maildir:~/Maildir+mail_driver = maildir 
 +mail_path = %{home}/Maildir 
 +mail_inbox_path = . 
 … …
 </file> </file>
  
 === prüfen === === prüfen ===
-  doveconf mail_location +  doveconf mail_driver 
--> gibt aus: ''mail_location = maildir:~/Maildir''+  doveconf mail_path 
 +  doveconf mail_inbox_path
  
 ===== per LMTP von Postfix zu Dovecot ===== ===== per LMTP von Postfix zu Dovecot =====
-=== Pakete === 
-Debian (ab 7): ''dovecot-lmtpd'' 
- 
 ==== dovecot Konfiguration ==== ==== dovecot Konfiguration ====
-Debian (ab 8): 
 <file txt /etc/dovecot/local.conf> <file txt /etc/dovecot/local.conf>
 … …
-auth_username_format = %Ln+#auth_username_format = %{user | username | lower } # already set similar in /etc/dovecot/conf.d/20-lmtp.conf, but for lmtp only?
 … …
-</file>((''auth_username_format'' ist essentiell, weil [[wpde>LMTP]] bei der Zustellung nach diesem Verzeichnis sucht.  +</file>
-  * ''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 +
--> gibt aus: ''auth_username_format = %Ln''+
  
-openSuSE 12.1, debian (ab 8):  
 <file raw /etc/dovecot/local.conf> <file raw /etc/dovecot/local.conf>
 … …
Zeile 60: Zeile 56:
   namei -l /var/spool/postfix/private/dovecot-lmtp   namei -l /var/spool/postfix/private/dovecot-lmtp
   lsof /var/spool/postfix/private/dovecot-lmtp   lsof /var/spool/postfix/private/dovecot-lmtp
 +-> ''TYPE'' ... ''unix''
  
 +Prüfen, ob über LMTP Mails zugestellt werden können:
 +  swaks --to user@example.com --socket /var/spool/postfix/private/dovecot-lmtp --protocol LMTP
 ==== Postfix Konfiguration ==== ==== Postfix Konfiguration ====
   postconf -e 'mailbox_transport = lmtp:unix:private/dovecot-lmtp'   postconf -e 'mailbox_transport = lmtp:unix:private/dovecot-lmtp'
Zeile 74: Zeile 73:
  
 ====== Dokumentation ====== ====== Dokumentation ======
-  * http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP+  * https://doc.dovecot.org/2.4.1/core/config/delivery/lmtp.html#lmtp-server
lpi2/postfix-dovecot-imapd.1755098029.txt.gz · Zuletzt geändert: 2025/08/13 15:13 von 127.0.0.1