From owner-freebsd-ports@freebsd.org Wed Jul 29 18:37:40 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AB0E9AE376 for ; Wed, 29 Jul 2015 18:37:40 +0000 (UTC) (envelope-from herbert@oslo.ath.cx) Received: from oslo.ath.cx (oslo.ath.cx [IPv6:2a01:4f8:200:42e4::1]) (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 C87D38B; Wed, 29 Jul 2015 18:37:39 +0000 (UTC) (envelope-from herbert@oslo.ath.cx) Received: from oslo.ath.cx (localhost [IPv6:::1]) by oslo.ath.cx (Postfix) with SMTP id D5C961380; Wed, 29 Jul 2015 20:37:36 +0200 (CEST) Date: Wed, 29 Jul 2015 20:37:36 +0200 From: "Herbert J. Skuhra" To: Pietro Cerutti Cc: freebsd-ports@FreeBSD.org Subject: Re: opensmtpd-5.7.1 - cannot authenticate Message-ID: <20150729183736.GA16103@oslo.ath.cx> References: <20150727184747.GK45849@ptrcrt.ch> <20150728132433.GB45930@oslo.ath.cx> <20150728192405.GQ45849@ptrcrt.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150728192405.GQ45849@ptrcrt.ch> User-Agent: Mutt/1.5.23+100 (79cd2f34961d) (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 18:37:40 -0000 On Tue, Jul 28, 2015 at 09:24:05PM +0200, Pietro Cerutti wrote: > On 2015-Jul-28, 15:24, Herbert J. Skuhra wrote: > > On Mon, Jul 27, 2015 at 08:47:47PM +0200, Pietro Cerutti wrote: > > > Hi, > > > > > > I tried to upgrade from 5.4.6 to 5.7.1, and suddenly I am unable to > > > authenticate. This is from the log file: > > > > > > Jul 27 17:05:03 mail smtpd[12146]: smtp-in: Failed command on session > > > a0516551dc7a4dc4: "AUTH PLAIN (...)" => 501 5.5.2 Syntax error: Syntax > > > error > > > > > > Relevant config lines area > > > > > > pki mydomain certificate "/usr/local/etc/mail-admin/tls/server.crt" > > > pki mydomain key "/usr/local/etc/mail-admin/tls/server.key" > > > table credentials file:/usr/local/etc/mail-admin/db/auth-smtp.db > > > listen on 192.168.1.1 secure auth-optional pki mydomain > > > > What's the output of 'file /usr/local/etc/mail-admin/db/auth-smtp.db'? > > Maybe you need db: not file:? > > it's an ASCII file, as it was with 5.4.6. As I said, no config > (including backend table files) has changed. > > > > I am able to switch from the 5.4.6 to the 5.7.1 binary and reproduce > > > that I can send mail with the former and cannot with the latter. No > > > config has changed. > > > > Have you tried to run 'smtpd -dv' or 'smtpd -dv -T all'? > > Here's the output from smtpd -dv -T all. > > Thank you! Opensmtpd 5.7.1p1 obviously has a problem when the auth username contains "@" (e.g: foo@example.com). -- Herbert