lpi2:postfix-dovecot-imapd
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| lpi2:postfix-dovecot-imapd [2023/12/07 13:33] – [dovecot Konfiguration] ingo_wichmann | lpi2: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 |
| + | Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]] | ||
| Vorraussetzung: | Vorraussetzung: | ||
| - | * [[dovecot]] | + | * [[dovecot]] |
| - | * [[postfix]] | + | * [[postfix]] |
| + | |||
| + | === Pakete === | ||
| + | Debian: '' | ||
| ===== Speicherformat für Mails ===== | ===== Speicherformat für Mails ===== | ||
| - | Mails im Maildir-Format speichern: ((alternative | + | Mails im Maildir-Format speichern: ((Maildir ist nicht das von dovecot bevorzugte Format. Alternative |
| - | <file txt / | + | <file txt / |
| … | … | ||
| - | mail_location | + | mail_driver |
| + | mail_path = %{home}/Maildir | ||
| + | mail_inbox_path = . | ||
| … | … | ||
| </ | </ | ||
| === prüfen === | === prüfen === | ||
| - | doveconf | + | doveconf |
| + | doveconf mail_path | ||
| + | doveconf mail_inbox_path | ||
| - | ===== Einfach: | + | ===== per LMTP von Postfix |
| ==== dovecot Konfiguration ==== | ==== dovecot Konfiguration ==== | ||
| - | [[# | + | <file txt /etc/dovecot/local.conf> |
| - | ==== Postfix Konfiguration ==== | + | |
| - | + | ||
| - | <file txt /etc/postfix/main.cf> | + | |
| … | … | ||
| - | home_mailbox | + | # |
| - | mailbox_command = | + | |
| … | … | ||
| </ | </ | ||
| - | === prüfen === | ||
| - | postconf home_mailbox | ||
| - | postconf mailbox_command | ||
| - | |||
| - | === Testen mit mutt === | ||
| - | <file txt ~/ | ||
| - | set mbox_type=Maildir | ||
| - | set folder=" | ||
| - | set mbox=" | ||
| - | set spoolfile=" | ||
| - | </ | ||
| - | |||
| - | ===== Performanter: | ||
| - | === Pakete === | ||
| - | Debian (ab 7): '' | ||
| - | |||
| - | ==== dovecot Konfiguration ==== | ||
| - | Debian (ab 8): | ||
| - | <file raw / | ||
| - | … | ||
| - | auth_username_format = %Ln | ||
| - | … | ||
| - | </ | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | Ersetzung siehe https:// | ||
| - | )) | ||
| - | doveconf auth_username_format | ||
| - | openSuSE 12.1, debian (ab 8): | + | <file raw / |
| - | <file raw / | + | |
| … | … | ||
| service lmtp { | service lmtp { | ||
| Zeile 66: | Zeile 41: | ||
| mode = 0660 | mode = 0660 | ||
| } | } | ||
| + | } | ||
| … | … | ||
| - | } | ||
| </ | </ | ||
| Konfiguration prüfen: | Konfiguration prüfen: | ||
| doveconf protocols | doveconf protocols | ||
| + | -> gibt u.a. aus: '' | ||
| doveconf -n | doveconf -n | ||
| Zeile 78: | Zeile 54: | ||
| Prüfen, ob dovecot den Socket angelegt hat: | Prüfen, ob dovecot den Socket angelegt hat: | ||
| - | | + | |
| + | lsof / | ||
| + | -> '' | ||
| + | Prüfen, ob über LMTP Mails zugestellt werden können: | ||
| + | swaks --to user@example.com --socket / | ||
| ==== Postfix Konfiguration ==== | ==== Postfix Konfiguration ==== | ||
| postconf -e ' | postconf -e ' | ||
| - | ===== Trusted Networks ===== | + | === Testen |
| - | Zu Testzwecken das eigene Netz als '' | + | Auf dem Client: |
| + | swaks -f test@lxht.de -t testuser@klaus-1.lxht.de -s klaus-1.lxht.de | ||
| + | -> '' | ||
| + | |||
| + | Auf dem Server: | ||
| + | journalctl -g B0EF53FA42 | ||
| + | -> '' | ||
| - | postconf mynetworks | ||
| - | mynetworks=' | ||
| - | postconf mynetworks=' | ||
| ====== Dokumentation ====== | ====== Dokumentation ====== | ||
| - | * http://wiki2.dovecot.org/ | + | * https://doc.dovecot.org/ |
lpi2/postfix-dovecot-imapd.1701956035.txt.gz · Zuletzt geändert: 2023/12/07 13:33 von ingo_wichmann
