From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 05:49:25 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 E355B16A4BF for ; Tue, 26 Aug 2003 05:49:25 -0700 (PDT) Received: from silakka.nettikala.fi (silakka.nettikala.fi [212.182.218.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3EE143FBD for ; Tue, 26 Aug 2003 05:49:24 -0700 (PDT) (envelope-from mailing-lists@johanpaul.com) Received: from localhost (localhost.nettikala.fi [127.0.0.1]) by silakka.nettikala.fi (Postfix) with ESMTP id 91DD713274F for ; Tue, 26 Aug 2003 15:52:04 +0300 (EEST) Received: from silakka.nettikala.fi ([127.0.0.1]) by localhost (silakka.nettikala.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01344-10 for ; Tue, 26 Aug 2003 15:52:04 +0300 (EEST) Received: from silakka.nettikala.fi (localhost.nettikala.fi [127.0.0.1]) by silakka.nettikala.fi (Postfix) with SMTP id 09CB4132666 for ; Tue, 26 Aug 2003 15:51:05 +0300 (EEST) Received: from 193.166.135.194 (SquirrelMail authenticated user kypeli) by silakka.nettikala.fi with HTTP; Tue, 26 Aug 2003 15:51:05 +0300 (EEST) Message-ID: <1367.193.166.135.194.1061902265.squirrel@silakka.nettikala.fi> Date: Tue, 26 Aug 2003 15:51:05 +0300 (EEST) From: "Johan Paul" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at sviitti.com Subject: Cyrus IMAP with pam_mysql? 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: Tue, 26 Aug 2003 12:49:26 -0000 Hi, Has anyone managed to get the Cyrus imapd to authenticate with pam_mysql -authentication? In /usr/local/etc/imapd.conf I have: allowanonymouslogin: no allowplaintext: yes sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN ...among other things. I am running saslauthd with pam authentication: silakka# ps xa |grep saslauthd 258 ?? Is 0:00.01 /usr/local/sbin/saslauthd1 -a pam This is what I have in my /etc/pam.conf: # Mail services imap auth sufficient pam_mysql.so user=mail passwd=uBerSecRETPASS host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 imap account required pam_mysql.so user=mail passwd=uBerSecRETPASS host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 The problem, I think, is the service column. The authentication is done via PAM since when I change the password for my shell account the mail password is changed too. But saslauthd uses some other service to authenticate, not imap and thus not pam_mysql. Why doesn't it reconize the above lines for Cyrus? I am running FreeBSD 4.8R This is giving me serious headache :) Thanks in advance for any clues!! Regards, Johan Paul