* Crazedfred <crazedf...@yahoo.com>: > Hello, > I'm having trouble with authentication on Debian 6. > > > I've set up Postfix to use Cryus-SASL to authenticate against LDAP. > The SASL configuration is a success: > sudo testsaslauthd -u "t...@example.com" -p "notRightPassword" > 0: NO "authentication failed" > sudo testsaslauthd -u "t...@example.com" -p "testtest123" > 0: OK "Success." > > However, a telnet attempt does not work: > telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost.localdomain. > Escape character is '^]'. > 220 ComputerName ESMTP Postfix (Debian/GNU) > auth plain PDAwPnRlc3RAZXhhbXBsZS5jb208MDA+dGVzdHRlc3QxMjM=
$ gen-auth decode PDAwPnRlc3RAZXhhbXBsZS5jb208MDA+dGVzdHRlc3QxMjM= <00>t...@example.com<00>testtest123 If you use the pass above, change it now that you have sent it to public. > 535 5.7.8 Error: authentication failed: authentication failure > > > When I try the above telnet authentication, I get the following errors in my > syslog: > postfix/smtpd[31075]: connect from localhost.localdomain[127.0.0.1] > postfix/smtpd[31075]: warning: SASL authentication problem: unable to open > Berkeley db /etc/sasldb2: No such file or directory > postfix/smtpd[31075]: warning: SASL authentication problem: unable to open > Berkeley db /etc/sasldb2: No such file or directory Where did you put smtpd.conf? On Debian it should be in /etc/postfix/sasl/smtpd.conf. Do you run Postfix smtpd chrooted? If yes, is the saslauthd socket in the jail where Postfix can connect to it? p@rick -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>