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 [2019/10/30 11:15] – [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 |
| - | Vorraussetzung: | + | Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]] |
| + | |||
| + | Vorraussetzung: | ||
| + | * [[dovecot]] ( Paket '' | ||
| + | * [[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 raw / |
| - | <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:// | + | |
| - | )) | + | |
| - | + | ||
| - | openSuSE 12.1, debian (ab 8): | + | |
| - | <file raw / | + | |
| … | … | ||
| service lmtp { | service lmtp { | ||
| Zeile 64: | Zeile 41: | ||
| mode = 0660 | mode = 0660 | ||
| } | } | ||
| - | … | ||
| } | } | ||
| + | … | ||
| </ | </ | ||
| + | Konfiguration prüfen: | ||
| + | doveconf protocols | ||
| + | -> gibt u.a. aus: '' | ||
| + | doveconf -n | ||
| + | |||
| + | Dienst neu starten: | ||
| + | systemctl restart dovecot.service | ||
| + | |||
| + | Prüfen, ob dovecot den Socket angelegt hat: | ||
| + | namei -l / | ||
| + | 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 ' | ||
| + | |||
| + | === Testen === | ||
| + | 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 | ||
| + | -> '' | ||
| ====== Dokumentation ====== | ====== Dokumentation ====== | ||
| - | * http://wiki2.dovecot.org/ | + | * https://doc.dovecot.org/ |
lpi2/postfix-dovecot-imapd.1572434159.txt.gz · Zuletzt geändert: 2019/10/30 11:15 von ingo_wichmann
