From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 08:47:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B31D37B401 for ; Wed, 9 Jul 2003 08:47:23 -0700 (PDT) Received: from tonnikala.nettikala.fi (tonnikala.nettikala.fi [212.182.218.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5446E43F93 for ; Wed, 9 Jul 2003 08:47:22 -0700 (PDT) (envelope-from mailing-lists@johanpaul.com) Received: from localhost (localhost [127.0.0.1]) by tonnikala.nettikala.fi (Postfix) with ESMTP id 5D08B4200B5 for ; Wed, 9 Jul 2003 18:47:26 +0300 (EEST) Received: by tonnikala.nettikala.fi (Postfix, from userid 612) id 3C5B44200B6; Wed, 9 Jul 2003 18:47:26 +0300 (EEST) Received: from johanpaul.com (dyn-7.milkyway [10.0.42.7]) by tonnikala.nettikala.fi (Postfix) with ESMTP id 8D9C44200B5 for ; Wed, 9 Jul 2003 18:47:25 +0300 (EEST) Message-ID: <3F0C3973.6080005@johanpaul.com> Date: Wed, 09 Jul 2003 18:49:07 +0300 From: Johan Paul User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-0.5 required=7.0 tests=SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.43-cvs X-Spam-Level: X-Virus-Scanned: by AMaViS snapshot-20020531 Subject: Cyrus PAM authentication doesn't work for POP3 (works for IMAP) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 15:47:23 -0000 X-List-Received-Date: Wed, 09 Jul 2003 15:47:23 -0000 Hi all! Just a brief question: does anyone have a clue why this doesn't work (4.8R) in /etc/pam.conf: pop auth sufficient pam_mysql.so user=foo passwd=foo host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 pop account required pam_mysql.so user=foo passwd=foo host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 ? I have the same lines for IMAP (the line starting with imap) and it works fine. This is the setup I would use with web-cyradmin. In imapd.conf I have tried for sasl_pwcheck_method both 'PAM' and 'saslauthd' (which would use PAM...). If I set it to be 'saslauthd' I get this in /var/log/messages: Jul 9 18:36:55 silakka pop3d[23741]: badlogin: dyn-7.milkyway[10.0.42.7] plaintext kypeli cannot connect to pwcheck server If I set it to 'PAM' I get nothing in messages - the client just shows an error for invalid login. IMAP forks fine no matter if sasl_pwcheck_method is PAM or saslauthd. I am a bit confused :-) Thanks again in advance! -- Johan Paul