postfix+sasl/pam hitelesitesi hiba

Fórumok

Sziasztok!

Tudom, masnak ez ujjgyakorlat, de en elakadtam par napja es nem jutok elore - halas lennek a segitsegert. Amit el lehetett olvasni, azt elolvastam a neten, de a hibat nem talaltam meg.

Ubuntu 18.04.2 LTS friss, postfix mail_version = 3.3.0, saslauthd 2.1.27

Postfix mukodik, sasl mukodik, de a ketto egyutt nem ugy, ahogy szeretnem.

587-es porton openssl (tls) bejelentkezessel (tls resz rendben), AUTH PLAIN -re a valasz:
535 5.7.8 Error: authentication failed: bad protocol / cancel

Idevago log postfixbol:
warning: SASL authentication failure: Can only find author (no password)
[...] SASL PLAIN authentication failed: bad protocol / cancel

Tuzfal es egyeb problemak nincsenek (nem tudok roluk).

Postfix config idevago resze:
postconf -n | grep sasl
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous

Sasl resz:
testsaslauthd -u testuser -p testuser
0: OK "Success."

A bejelentkezest az "openssl s_client"-el tesztelem, a hash gyartasa:
echo "\0testuser\0testuser" | base64

Tud valaki segiteni? Elore is koszonom!

Hozzászólások

Szerintem nem adtál meg auth daemont a postfixnek, tehát hogy ki hitelesítse a kérést. dovecot vagy saslauthd

Koszi, megadtam az smtpd.conf-ban:

cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login

Postfix pedig innen tudja, hogy hova:
postconf -n | grep sasl_path
smtpd_sasl_path = smtpd

echo -e eseten viszont mar mas hibauzenetet ad:
SASL authentication failure: Password verification failed
535 5.7.8 Error: authentication failed: authentication failure

A protocol szabalyait mar ugy nez ki betartom, de a helyben hitelesitett user adataival nem tudok bejutni tavolrol...
Egy lepessel beljebb, de meg valami hianyzik. Koszonet a tippert.