From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 10:54:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC84F1065670 for ; Sat, 13 Sep 2008 10:54:14 +0000 (UTC) (envelope-from roland@micite.net) Received: from yttrium.micite.net (ut-n-d0eb.adsl.wanadoo.nl [81.68.238.235]) by mx1.freebsd.org (Postfix) with ESMTP id 334988FC1A for ; Sat, 13 Sep 2008 10:54:13 +0000 (UTC) (envelope-from roland@micite.net) Received: (qmail 38976 invoked from network); 13 Sep 2008 10:27:09 -0000 Received: from unknown (HELO MiBook.local) (roland@192.168.2.2) by 192.168.2.71 with AES256-SHA encrypted SMTP; 13 Sep 2008 10:27:09 -0000 Message-ID: <48CB9586.3060103@micite.net> Date: Sat, 13 Sep 2008 12:27:18 +0200 From: Roland van Laar User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: qmail authentication problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2008 10:54:15 -0000 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