From owner-freebsd-questions@FreeBSD.ORG Fri Apr 25 22:36:42 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 9291B106566C for ; Fri, 25 Apr 2008 22:36:42 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) Received: from mx3.cyfra.com (mx3.cyfra.ua [62.80.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 516518FC12 for ; Fri, 25 Apr 2008 22:36:42 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) Received: from c.195.174.a516.dyn.adsl.cyfra.net ([62.80.174.195] helo=bedside.lena.kiev.ua) by mx3.cyfra.com with esmtp (Exim 4.68) (envelope-from ) id 1JpWX3-0004EX-Aw for freebsd-questions@FreeBSD.org; Sat, 26 Apr 2008 01:36:41 +0300 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.14.2/8.14.2) with ESMTP id m3PMab56033602 for ; Sat, 26 Apr 2008 01:36:37 +0300 (EEST) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.14.2/8.14.2/Submit) id m3PMabRf033601 for freebsd-questions@FreeBSD.org; Sat, 26 Apr 2008 01:36:37 +0300 (EEST) (envelope-from Lena@lena.kiev.ua) Date: Sat, 26 Apr 2008 01:36:37 +0300 From: Lena@lena.kiev.ua To: freebsd-questions@FreeBSD.org Message-ID: <20080425223637.GE735@lena.kiev> References: <20080425161837.GD735@lena.kiev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080425161837.GD735@lena.kiev> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: PAM error: error in service module 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: Fri, 25 Apr 2008 22:36:42 -0000 P.S. I posted: > I'm trying to set up Exim in a jail to authenticate using the > security/pam_pop3 port. Exim runs not as root when authenticating, so neither Exim nor PAM it called can read master.passwd, it's why I need pam_pop3. > /etc/pam.d/exim contains one line: > > auth required /usr/local/lib/pam_pop3.so hostname=localhost debug pwprompt=Password: timeout=5 > How can I debug further? I tried strace and truss unsuccessfully because mount_procfs is forbidden inside the jail. Then I used ktrace and saw that /etc/pam.d/other is read. Then I googled for `pam_pop3 pam.d`, saw http://xmailforum.homelinux.net/index.php?showtopic=2354 and added second line to /etc/pam.d/exim : account required pam_permit.so That solved the problem. Sorry for bothering the list. I hope that this recipe will be searchable. Lena