Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi2:postfix-dovecot-imapd [2019/10/30 10:47] ingo_wichmann |
lpi2:postfix-dovecot-imapd [2022/12/21 20:41] 127.0.0.1 Externe Bearbeitung |
||
---|---|---|---|
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 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 -n -m lmtp | ||
+ | |||
+ | Dienst neu starten: | ||
+ | systemctl restart dovecot.service | ||
+ | |||
+ | Prüfen, ob dovecot den Socket angelegt hat: | ||
+ | ls -l /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' | ||
+ | ===== Trusted Networks ===== | ||
+ | Zu Testzwecken das eigene Netz als ''mynetworks'' eintragen, also statt /32 ein /24 | ||
+ | |||
+ | postconf mynetworks | ||
+ | mynetworks='127.0.0.1/32 192.168.225.102/32 [::1]/128 [fe80::5054:ff:fe00:102]/12' | ||
+ | postconf mynetworks='127.0.0.1/32 192.168.225.0/24 [::1]/128 [fe80::5054:ff:fe00:102]/12' | ||
====== Dokumentation ====== | ====== Dokumentation ====== | ||
* http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP | * http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP |