I changed back to a saved /etc/postfix/main.cf file I had.
The PLAIN LOGIN auth reappear fine, STARTLS work

still

testsaslauthd -u u...@domain.com -p password
0: NO "authentication failed"

logs:

Apr 22 14:08:48 xx saslauthd[12159]: do_auth         : auth failure:
[user=u...@domain.com] [service=imap] [realm=] [mech=rimap] [reason=remote
server rejected your credentials]
Apr 22 14:48:47 xx saslauthd[12161]: do_auth         : auth failure:
[user=u...@domain.com] [service=imap] [realm=] [mech=rimap] [reason=remote
server rejected your credentials]

so I tried with telnet and my username password base64 encoded with this:
% printf 'username\0username\0password' | openssl base64

and I got those:

telnet localhost 587
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.domain.com ESMTP Postfix
EHLO localhost
250-host.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
STARTTLS
220 2.0.0 Ready to start TLS
AUTH PLAIN myencodedbase64string=
Connection closed by foreign host.

~ # telnet localhost 587
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.domain.com ESMTP Postfix
EHLO localhost
250-host.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN myencodedbase64string=
535 5.7.8 Error: authentication failed: authentication failure


saslauthd is like a black box now. How could I open it?

thx
Laurent







Reply via email to