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 10:23] – [Dovecot Maildir 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: [[postfix]] | + | Anleitung für ältere Dovecot-Versionen (bis 2.3): [[postfix-dovecot-imapd-2-3]] |
| - | ===== Einfach: Maildir | + | Vorraussetzung: |
| - | ==== Dovecot Maildir Konfiguration | + | * [[dovecot]] ( Paket '' |
| - | <file txt / | + | * [[postfix]] ( Paket '' |
| + | |||
| + | === Pakete | ||
| + | Debian: '' | ||
| + | |||
| + | ===== Speicherformat für Mails ===== | ||
| + | Mails im Maildir-Format speichern: ((Maildir ist nicht das von dovecot bevorzugte Format. Alternative Möglichkeiten: | ||
| + | |||
| + | <file txt / | ||
| … | … | ||
| - | mail_location | + | mail_driver |
| + | mail_path = %{home}/Maildir | ||
| + | mail_inbox_path = . | ||
| … | … | ||
| </ | </ | ||
| - | service dovecot reload | ||
| === prüfen === | === prüfen === | ||
| - | doveconf | + | doveconf |
| + | doveconf mail_path | ||
| + | doveconf mail_inbox_path | ||
| - | ==== Postfix | + | ===== per LMTP von Postfix |
| - | + | ==== dovecot Konfiguration ==== | |
| - | ''/ | + | <file txt /etc/ |
| - | < | + | … |
| - | home_mailbox | + | # |
| - | mailbox_command | + | … |
| - | </ | + | |
| - | + | ||
| - | === Testen mit mutt === | + | |
| - | <file txt ~/.muttrc> | + | |
| - | set mbox_type=Maildir | + | |
| - | set folder=" | + | |
| - | set mbox=" | + | |
| - | set spoolfile=" | + | |
| </ | </ | ||
| - | ===== Performanter: | + | <file raw / |
| - | === Pakete === | + | … |
| - | Debian (7): '' | + | |
| - | + | ||
| - | ==== Dovecot 2.x ==== | + | |
| - | ( Debian 8 ) | + | |
| - | <file raw / | + | |
| - | auth_username_format = %Ln | + | |
| - | </ | + | |
| - | (('' | + | |
| - | + | ||
| - | ( openSuSE 12.1, debian 8 )\\ | + | |
| - | <file raw / | + | |
| service lmtp { | service lmtp { | ||
| unix_listener / | unix_listener / | ||
| + | user = postfix | ||
| group = postfix | group = postfix | ||
| mode = 0660 | mode = 0660 | ||
| - | user = postfix | ||
| } | } | ||
| } | } | ||
| + | … | ||
| </ | </ | ||
| - | ( openSUSE Leap 42.1, debian 8 )\\ | + | Konfiguration prüfen: |
| - | Existiert noch kein '' | + | doveconf protocols |
| - | <file raw / | + | -> gibt u.a. aus: '' |
| - | mail_location = maildir: | + | |
| - | </ | + | |
| - | ==== Postfix ==== | + | 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 | ||
| 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.1572430981.txt.gz · Zuletzt geändert: 2019/10/30 10:23 von ingo_wichmann
