lpi2:postfix-dovecot-imapd
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| lpi2:postfix-dovecot-imapd [2012/03/23 07:27] – Externe Bearbeitung 127.0.0.1 | 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: |
| - | ==== Postfix Maildir Konfiguration ==== | + | * [[dovecot]] ( Paket '' |
| + | * [[postfix]] ( Paket '' | ||
| - | '' | + | === Pakete === |
| - | < | + | Debian: |
| - | home_mailbox | + | |
| - | mailbox_command | + | ===== Speicherformat für Mails ===== |
| + | Mails im Maildir-Format speichern: ((Maildir ist nicht das von dovecot bevorzugte Format. Alternative Möglichkeiten: | ||
| + | |||
| + | < | ||
| + | … | ||
| + | mail_driver | ||
| + | mail_path = %{home}/Maildir | ||
| + | mail_inbox_path | ||
| + | … | ||
| </ | </ | ||
| - | ===== Performanter: | + | === prüfen |
| - | ==== Postfix ==== | + | |
| - | | + | |
| + | doveconf mail_inbox_path | ||
| - | ==== Dovecot | + | ===== per LMTP von Postfix zu Dovecot |
| - | '' | + | ==== dovecot Konfiguration ==== |
| - | < | + | <file txt / |
| - | auth_username_format = %Ln | + | … |
| + | # | ||
| + | … | ||
| + | </file> | ||
| + | |||
| + | <file raw / | ||
| + | … | ||
| service lmtp { | service lmtp { | ||
| unix_listener / | unix_listener / | ||
| + | user = postfix | ||
| group = postfix | group = postfix | ||
| mode = 0660 | mode = 0660 | ||
| - | user = postfix | ||
| } | } | ||
| } | } | ||
| + | … | ||
| </ | </ | ||
| + | |||
| + | 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 ==== | ||
| + | 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.1332487671.txt.gz · Zuletzt geändert: 2014/02/27 00:07 (Externe Bearbeitung)
