Re: [spfbis] WGLC: draft-ietf-spfbis-4408bis-14 - Fully parse record *first*

Scott Kitterman <spf2@kitterman.com> Tue, 23 April 2013 09:55 UTC

Return-Path: <spf2@kitterman.com>
X-Original-To: spfbis@ietfa.amsl.com
Delivered-To: spfbis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E648B21F9609 for <spfbis@ietfa.amsl.com>; Tue, 23 Apr 2013 02:55:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.578
X-Spam-Level:
X-Spam-Status: No, score=-2.578 tagged_above=-999 required=5 tests=[AWL=0.021, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8a1UnbbMMD3w for <spfbis@ietfa.amsl.com>; Tue, 23 Apr 2013 02:55:14 -0700 (PDT)
Received: from mailout02.controlledmail.com (mailout02.controlledmail.com [72.81.252.18]) by ietfa.amsl.com (Postfix) with ESMTP id 382BF21F95F3 for <spfbis@ietf.org>; Tue, 23 Apr 2013 02:55:14 -0700 (PDT)
Received: from mailout02.controlledmail.com (localhost [127.0.0.1]) by mailout02.controlledmail.com (Postfix) with ESMTP id B935F20E410C; Tue, 23 Apr 2013 05:55:13 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=2007-00; t=1366710913; bh=y5ma1pFzbwq613/ueXy2k2U9b5iwevKcLM84dfbGXXA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DPX6NUmwxPeVur/zeR25V4NlRYcYu05QoJm2JoWZXMR9vmeVeIKfiofcYPkTJtcC7 3A8ZLdjxAMPxhsFs+4qnGD2pMLLSt8gAEE3neA7AcPEloVuh2zeCJblfAUZaF2+d27 ZPVCaiK/eVlVUtBJYd17zmiDgMGanPlEwcwfvOls=
Received: from scott-latitude-e6320.localnet (static-72-81-252-21.bltmmd.fios.verizon.net [72.81.252.21]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout02.controlledmail.com (Postfix) with ESMTPSA id A3AEC20E40CD; Tue, 23 Apr 2013 05:55:13 -0400 (EDT)
From: Scott Kitterman <spf2@kitterman.com>
To: spfbis@ietf.org
Date: Tue, 23 Apr 2013 05:55:12 -0400
Message-ID: <2417280.JQpPtHczhD@scott-latitude-e6320>
User-Agent: KMail/4.9.5 (Linux/3.5.0-27-generic; KDE/4.9.5; i686; ; )
In-Reply-To: <51763F5D.3080004@tana.it>
References: <20130409062431.GK24624@mx1.yitter.info> <2528747.v4GPD3HTbD@scott-latitude-e6320> <51763F5D.3080004@tana.it>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
X-AV-Checked: ClamAV using ClamSMTP
Subject: Re: [spfbis] WGLC: draft-ietf-spfbis-4408bis-14 - Fully parse record *first*
X-BeenThere: spfbis@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SPFbis discussion list <spfbis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spfbis>, <mailto:spfbis-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/spfbis>
List-Post: <mailto:spfbis@ietf.org>
List-Help: <mailto:spfbis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spfbis>, <mailto:spfbis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Apr 2013 09:55:15 -0000

On Tuesday, April 23, 2013 09:59:25 AM Alessandro Vesely wrote:
> On Mon 22/Apr/2013 19:18:58 +0200 Scott Kitterman wrote:
> > On Monday, April 22, 2013 06:37:56 PM Alessandro Vesely wrote:
> >> On Mon 22/Apr/2013 18:06:41 +0200 Scott Kitterman wrote:
> >>> On Monday, April 22, 2013 05:48:33 PM Alessandro Vesely wrote:
> >>>> On Mon 22/Apr/2013 16:04:11 +0200 Scott Kitterman wrote:
> >>>>>> Mechanisms after "all" will never be tested.  Mechanisms listed after
> >>>>>> "all" MUST be ignored.
> >>>>> 
> >>>>> Perhaps if we combine those it helps:
> >>>>>> Mechanisms after "all" MUST not be tested.  Mechanisms listed after
> >>>>>> "all" will be ignored for all purposes except syntax error
> >>>>>> evaluation.
> >>>>> 
> >>>>> Does that help?
> >>>> 
> >>>> Nope, IMHO it's better as is now.  That is:
> >>>> 
> >>>> CURRENT
> >>>> 
> >>>>    If there are any syntax errors
> >>>> 
> >>>> EQUIVALENT-FROM-A-PRAGMATIC-POV
> >>>> 
> >>>>    If any syntax errors are found
> >>>>    
> >>>>    anywhere in the record, check_host() returns immediately with the
> >>>>    result "permerror", without further interpretation.
> >>>> 
> >>>> See also http://tools.ietf.org/wg/spfbis/trac/ticket/26
> >>>> and http://www.ietf.org/mail-archive/web/spfbis/current/msg02765.html
> >>> 
> >>> Right, but how can you find a syntax error in something you MUST ignore?
> >> 
> >> You have to parse it anyway, as it might be a modifier, e.g.
> >> 
> >>    "v=spf1 a -all ra=rfc6652"
> > 
> > That's true, but as soon as I determine it's a mechanism, I ignore it, so
> > the ambiguity still exists.
> 
> If you determine it's a valid something, there's no syntax error.

Anyone else?

I still think Stuart's point is valid, but I'm not sure the best way to fix it.  
I also think it would only matter in rare cases, but not so rare we can just 
say "Meh, corner case." and move on.

Scott K