From owner-freebsd-stable@FreeBSD.ORG Sat Sep 27 14:04:41 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53BC6C24 for ; Sat, 27 Sep 2014 14:04:41 +0000 (UTC) Received: from smtp.rlwinm.de (smtp.rlwinm.de [IPv6:2a01:4f8:201:31ef::e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15A02171 for ; Sat, 27 Sep 2014 14:04:41 +0000 (UTC) Received: from hexe.rlwinm.de (unknown [172.22.228.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.rlwinm.de (Postfix) with ESMTPSA id 6A95847D6 for ; Sat, 27 Sep 2014 16:04:36 +0200 (CEST) Message-ID: <5426C3F3.3040404@rlwinm.de> Date: Sat, 27 Sep 2014 16:04:35 +0200 From: Jan Bramkamp User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: 10.1 BETA2 World - Breaks saslauthd References: <3DA4B666-AB81-4F25-ABAE-DDC163F41E20@FreeBSD.org> In-Reply-To: <3DA4B666-AB81-4F25-ABAE-DDC163F41E20@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 14:04:41 -0000 On 25.09.2014 17:04, Dimitry Andric wrote: > On 25 Sep 2014, at 16:54, Tim Daneliuk wrote: >> I've seen this behavior over the last week or two when I try to upgrade >> to latest stable sources. Currently just installed kernel and world for: >> >> /usr/src>svn info >> Path: . >> Working Copy Root Path: /usr/src >> URL: svn://svn.freebsd.org/base/stable/10 >> Relative URL: ^/stable/10 >> Repository Root: svn://svn.freebsd.org/base >> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >> Revision: 272095 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: peter >> Last Changed Rev: 272078 >> Last Changed Date: 2014-09-24 14:30:36 -0500 (Wed, 24 Sep 2014) >> >> This breaks saslauthd - it demands a password when sending mail, but then >> rejects it in every case. >> >> If I just install a new kernel, everything is fine. But if I install >> world, that's when the problem shows up. I've tried a full reinstall of >> cygnus sasls and the daemon is running. >> >> Ideas on how to chase this down/fix, would be appreciated... > > It is probably caused by this MFC: http://svnweb.freebsd.org/changeset/base/271766 > > To make saslauthd work again, you need to specify a correct PAM policy > file in /usr/local/etc/pam.d for your service, most likely "smtp" in > this case. E.g., create a file /usr/local/etc/pam.d/smtp, containing at > least: > > auth required pam_unix.so no_warn try_first_pass > account required pam_unix.so > session required pam_permit.so > password required pam_permit.so > > Optionally, add a line: > > auth required pam_group.so luser group=smtp-users fail_safe > > to allow only members of the smtp-users group to authenticate > successfully. > > -Dimitry > If I remember correctly saslauthd -a pam is hardcoded to always use the PAM service "imap".