From owner-freebsd-isp@FreeBSD.ORG Mon Jun 12 11:29:17 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2706016A418 for ; Mon, 12 Jun 2006 11:29:17 +0000 (UTC) (envelope-from jflowers@ezo.net) Received: from mbox.ezo.net (mbox.ezo.net [12.156.78.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C986043D46 for ; Mon, 12 Jun 2006 11:29:16 +0000 (GMT) (envelope-from jflowers@ezo.net) Received: from ezo.net (localhost [127.0.0.1]) by mbox.ezo.net (Postfix) with ESMTP id 805DD5C1D for ; Mon, 12 Jun 2006 07:29:27 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=ezo.net) by MXSentry; 12 Jun 2006 07:29:26 -0400 From: "jflowers" To: freebsd-isp@freebsd.org Date: Mon, 12 Jun 2006 07:29:26 -0400 Message-Id: <20060612111724.M53249@ezo.net> In-Reply-To: <7.0.1.0.0.20060612051259.04bbfd10@szarka.org> References: <7.0.1.0.0.20060611113015.072d4698@szarka.org> <7.0.1.0.0.20060612051259.04bbfd10@szarka.org> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 65.25.65.37 (jflowers@ezo.net) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Re: Sendmail/SASL2/saslauthdb problem X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jflowers@ezo.net List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 11:29:17 -0000 Nibbed in here without reading the rest of the thread as I just finished debugging some dovecot SASL. On FreeBSD mmencode can't be used, even with printf for 'auth plain' because it can't handle the null (\0) characters required. At least I couldn't figure out how to do it. My solution was to use perl with MIME::Base64 installed as in: perl -MMIME::Base64 -e 'print encode_base64("user\@domain.tld\0user\@domain.tld\0password");' mmencode -u can be used to test the encoding as there are no nulls: perl -MMIME::Base64 -e 'print encode_base64("user\@domain.tld\0user\@domain.tld\0password");' | mmencode -u On Mon, 12 Jun 2006 05:13:17 -0400, Rob Szarka wrote > *ahem* > > I would like to point out the following obvious (in retrospect) > advice about testing smtp auth by hand: > > when using mmencode to translate to base64, one should > > printf "username" | mmencode > > not > > echo "username" | mmencode > > Of course, it wasn't working from my usual MUA either, originally; > but after I fixed my problem, I didn't know it was fixed because I > was testing with a bad username and password. > > *sigh* > > After a complete deinstall/reinstall/reconfigure didn't work, I > caught on... > > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" -- Jim Flowers