Date: Sat, 13 Sep 2008 12:27:18 +0200 From: Roland van Laar <roland@micite.net> To: freebsd-questions@freebsd.org Subject: qmail authentication problems Message-ID: <48CB9586.3060103@micite.net>
next in thread | raw e-mail | index | archive | help
Hello, After installing qmail, and being quit happy with it, I wanted to start using authentication; which I can't get to work. Installed mail/qmail-tls in tcp.smtp: 192.168.2.:allow,RELAYCLIENT="" :allow For checkpassword I am using /usr/local/bin/checkpassword which works fine (when the correct passwd is used) if I try it at the command line: printf "%s\0%s\0%s\0" roland S03p3rS3cre7 Y123456 | /usr/local/bin/checkpassword /usr/bin/id 3<&0 And it prints my user id. When I try to login via netcat: smtptest << EOF EHLO AUTH LOGIN cm9sYW5kCg== UzAzcDNyUzNjcmU3Cg== EOF $ nc localhost 25 < smtptest 220 yttrium.micite.net ESMTP 250-yttrium.micite.net 250-AUTH LOGIN CRAM-MD5 PLAIN 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-STARTTLS 250-PIPELINING 250 8BITMIME 334 VXNlcm5hbWU6 334 UGFzc3dvcmQ6 535 authorization failed (#5.7.0) The log files are silent. I tried to use checkpassword-pam, as a replacement, but this gave errors such as: Sep 13 10:35:55 yttrium smtp[37132]: Internal error: unknown message style: 'PAM_ERROR_MSG' Sep 13 10:35:55 yttrium smtp[37132]: Authentication failed: authentication error Sep 13 10:39:33 yttrium /usr/local/bin/checkpassword-pam[37154]: PAM service name not specified What can be the problem?? Roland
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CB9586.3060103>