Die Aufgabe war relativ einfach. Dieser Rechner sollte als Relay Host
für meinen heimischen Mail-Server dienen. An sich kein Problem:
In der /etc/postfix/saslpass steht der Rechnername inklusive Nutzernamen und Paßwort.
In der /etc/postfix/main.cf ist per
smtp_sasl_auth_enable = yes
SMTP-Auth aktiviert.
Trotzdem erscheint in der Log-Datei die Meldung:
postfix/smtp[28164]: warning: SASL authentication failure: No worthy mechs found
sowie
… (SASL authentication failed; cannot authenticate to server …: no mechanism available)
Vielleicht lag’s an TLS. Also noch aktivieren:
smtp_use_tls = yes
Das war’s dann aber immer noch nicht.
Des Rätsels Lösung: Postfix benutzt im Normalfall keine Klartextanmeldung (PLAIN
). Im vorliegenden Fall ist das aber unkritisch, da SSL/TLS verwendet wird. Ändern läßt sich das mit:
smtp_sasl_security_options = noanonymous
So werden auch Klartextanmeldungen verwendet.
Kommentare
Cool
I kinda knew all that, reading this helped finding a typo though - thanks!