Re: Envelope tests on null or illegal MAIL FROM (non)addresses

Ned Freed <ned.freed@mrochek.com> Wed, 14 June 2006 21:42 UTC

Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k5ELgD4l042736; Wed, 14 Jun 2006 14:42:14 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k5ELgDlb042735; Wed, 14 Jun 2006 14:42:13 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (206.117.180.234.brandx.net [206.117.180.234] (may be forged)) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k5ELgDYi042725 for <ietf-mta-filters@imc.org>; Wed, 14 Jun 2006 14:42:13 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01M3MAAH96PS00EAWV@mauve.mrochek.com> for ietf-mta-filters@imc.org; Wed, 14 Jun 2006 14:42:11 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=nowsp; d=mrochek.com; s=mauve; t=1150321330; h=Date: From:Subject:MIME-version:Content-type; b=phUOOpFbRZJjJ2VfqV0F+eer8 XKpC725lKWEuarM6bKAFE6EJv9E7KqqFEFPjrEHvivjAdzEo40EiR7dcC8pYg==
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01M3M71QXL8G00007A@mauve.mrochek.com>; Wed, 14 Jun 2006 14:42:08 -0700 (PDT)
Cc: Ned Freed <ned.freed@mrochek.com>, ietf-mta-filters@imc.org
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
Message-id: <01M3MAAG9JO800007A@mauve.mrochek.com>
Date: Wed, 14 Jun 2006 14:40:25 -0700
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: Envelope tests on null or illegal MAIL FROM (non)addresses
In-reply-to: "Your message dated Wed, 14 Jun 2006 23:37:00 +0200" <1150321020.16538.12.camel@mattugur.ifi.uio.no>
MIME-version: 1.0
Content-type: TEXT/PLAIN
References: <01M3LWTYKQV000007A@mauve.mrochek.com> <1150321020.16538.12.camel@mattugur.ifi.uio.no>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> On Wed, 2006-06-14 at 08:03 -0700, Ned Freed wrote:
> > FWIW, I'd be in favor of having a null MAIL FORM result in an empty string
> > being tested regardless of which ADDRESS-PART is specified.

> agreed.

> >  As for invalid
> > MAIL FROM values, I'm inclined to say that :all should test against the
> > literal string inside the <>s and :domain and :localpart should test
> > against the empty string. This way you can test for specific bogons and
> > handle them accordingly.

> as a user, I would expect it to do the simple thing, and split on the
> (rightmost) @.  but by requiring syntax correctness, we protect users
> from themselves, ie. if they write a match expression which didn't
> consider the possibility of some particular external garbage.

> wouldn't it be better to say that :localpart and :domain never match
> when the address is a bogon, though?  I don't see what we gain by making
> it "alias" into an empty sender, even if the recommended and natural way
> of checking for the empty sender is with :all.

Good point. I agree that domain and localpart matches should never match when
dealing with an unparseable address.

				Ned