Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
fortgeschrittene:postfix-dovecot-sasl [2022/05/20 20:44] ingo_wichmann |
fortgeschrittene:postfix-dovecot-sasl [2025/08/14 09:44] (aktuell) marcel_scholten |
||
|---|---|---|---|
| Zeile 4: | Zeile 4: | ||
| ====== Dovecot auth service ====== | ====== Dovecot auth service ====== | ||
| - | <file txt /etc/dovecot/conf.d/10-master.conf> | + | <file txt /etc/dovecot/local.conf> |
| - | service auth { | + | |
| … | … | ||
| + | service auth { | ||
| unix_listener /var/spool/postfix/private/auth { | unix_listener /var/spool/postfix/private/auth { | ||
| mode = 0660 | mode = 0660 | ||
| Zeile 12: | Zeile 12: | ||
| group = postfix | group = postfix | ||
| } | } | ||
| - | … | ||
| } | } | ||
| - | </file> | ||
| - | |||
| - | <file txt /etc/dovecot/conf.d/10-auth.conf> | ||
| - | … | ||
| # Outlook and Windows Mail works only with LOGIN mechanism, not the standard PLAIN: | # Outlook and Windows Mail works only with LOGIN mechanism, not the standard PLAIN: | ||
| auth_mechanisms = plain login | auth_mechanisms = plain login | ||
| … | … | ||
| </file> | </file> | ||
| - | + | doveconf -n | grep -EA3 -B5 '/var/spool/postfix/private/auth' | |
| - | systemctl restart dovecot.service | + | doveconf auth_mechanisms |
| + | -> ''auth_mechanisms = plain login'' | ||
| + | systemctl reload dovecot.service | ||
| Testen: | Testen: | ||
| - | ls -l /var/spool/postfix/private/auth | + | namei -l /var/spool/postfix/private/auth |
| + | -> darf Postfix auf den Socket zugreifen? | ||
| + | lsof /var/spool/postfix/private/auth | ||
| + | -> ''dovecot … unix … /var/spool/postfix/private/auth … LISTEN'' | ||
| ====== Postfix soll Dovecot auth service nutzen ====== | ====== Postfix soll Dovecot auth service nutzen ====== | ||
| Zeile 37: | Zeile 37: | ||
| === swaks === | === swaks === | ||
| swaks --from me@example.com --to you@example.com -s localhost -a -au nutzer14 -ap test | swaks --from me@example.com --to you@example.com -s localhost -a -au nutzer14 -ap test | ||
| + | -> ''Authentication successful'' | ||
| === netcat === | === netcat === | ||
| Encodiertes Passwort erzeugen: | Encodiertes Passwort erzeugen: | ||