Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
lpi2:postfix-dovecot-imapd [2019/10/30 10:47] ingo_wichmann |
lpi2:postfix-dovecot-imapd [2024/04/25 09:04] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== postfix und dovecot-imapd verbinden ====== | ====== postfix und dovecot-imapd verbinden ====== | ||
- | Vorraussetzung: [[postfix]] | + | Vorraussetzung: |
+ | * [[dovecot]] | ||
+ | * [[postfix]] | ||
===== Speicherformat für Mails ===== | ===== Speicherformat für Mails ===== | ||
Zeile 47: | Zeile 49: | ||
auth_username_format = %Ln | auth_username_format = %Ln | ||
… | … | ||
- | </file> | + | </file>((''auth_username_format'' ist essentiell, weil [[wpde>LMTP]] bei der Zustellung nach diesem Verzeichnis sucht. |
- | ((''auth_username_format'' ist essentiell, weil [[wpde>LMTP]] bei der Zustellung nach diesem Verzeichnis sucht. | + | |
* ''L'' = lowercase, email-Adresse wird in Kleinbuchstaben umgewandelt | * ''L'' = lowercase, email-Adresse wird in Kleinbuchstaben umgewandelt | ||
* ''n'' = nur Benutzername | * ''n'' = nur Benutzername | ||
Zeile 54: | Zeile 55: | ||
Ersetzung siehe https://doc.dovecot.org/configuration_manual/config_file/config_variables/ | Ersetzung siehe https://doc.dovecot.org/configuration_manual/config_file/config_variables/ | ||
)) | )) | ||
+ | doveconf auth_username_format | ||
openSuSE 12.1, debian (ab 8): | openSuSE 12.1, debian (ab 8): | ||
Zeile 60: | Zeile 62: | ||
service lmtp { | service lmtp { | ||
unix_listener /var/spool/postfix/private/dovecot-lmtp { | unix_listener /var/spool/postfix/private/dovecot-lmtp { | ||
+ | user = postfix | ||
group = postfix | group = postfix | ||
mode = 0660 | mode = 0660 | ||
- | user = postfix | ||
} | } | ||
… | … | ||
} | } | ||
</file> | </file> | ||
+ | |||
+ | Konfiguration prüfen: | ||
+ | doveconf protocols | ||
+ | doveconf -n | ||
+ | |||
+ | Dienst neu starten: | ||
+ | systemctl restart dovecot.service | ||
+ | |||
+ | Prüfen, ob dovecot den Socket angelegt hat: | ||
+ | namei -l /var/spool/postfix/private/dovecot-lmtp | ||
+ | lsof /var/spool/postfix/private/dovecot-lmtp | ||
==== Postfix Konfiguration ==== | ==== Postfix Konfiguration ==== | ||
postconf -e 'mailbox_transport = lmtp:unix:private/dovecot-lmtp' | postconf -e 'mailbox_transport = lmtp:unix:private/dovecot-lmtp' | ||
+ | |||
====== Dokumentation ====== | ====== Dokumentation ====== | ||
* http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP | * http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP |