Re: regarding illegally formed address and commands

Jack De Winter <jack@wildbear.on.ca> Tue, 24 December 1996 07:26 UTC

Received: from cnri by ietf.org id aa01718; 24 Dec 96 2:26 EST
Received: from list.cren.net by CNRI.Reston.VA.US id aa03234; 24 Dec 96 2:26 EST
Received: from localhost (localhost.0.0.127.in-addr.arpa [127.0.0.1]) by list.cren.net (8.7.6/8.6.12) with SMTP id BAA10467; Tue, 24 Dec 1996 01:43:25 -0500 (EST)
Received: from lacroix.wildbear.on.ca (lacroix.wildbear.on.ca [199.246.132.198]) by list.cren.net (8.7.6/8.6.12) with ESMTP id BAA10455 for <ietf-smtp@list.cren.net>; Tue, 24 Dec 1996 01:43:07 -0500 (EST)
Received: by lacroix.wildbear.on.ca from localhost (router,SLMailNT V3.0); Tue, 24 Dec 1996 01:36:36 -0500
Received: by lacroix.wildbear.on.ca from wildside.wildbear.on.ca (199.246.132.193::mail daemon,SLMailNT V3.0); Tue, 24 Dec 1996 01:36:35 -0500
Message-Id: <3.0.32.19961224014136.00ef9b6c@lacroix>
Date: Tue, 24 Dec 1996 01:41:37 -0500
Sender: owner-ietf-smtp@list.cren.net
Precedence: bulk
From: Jack De Winter <jack@wildbear.on.ca>
To: Ned Freed <Ned.Freed@innosoft.com>
Cc: ietf-smtp@list.cren.net
Subject: Re: regarding illegally formed address and commands
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: "Jack De Winter" <jack@wildbear.on.ca>
X-Mailer: Windows Eudora Pro Version 3.0 (32)
X-Listprocessor-Version: 8.1 beta -- ListProcessor(tm) by CREN

At 01:52 PM 12/23/96 -0800, Ned Freed wrote:
>> just out of curiousity, what do people do with
>> illegally formed commands?
>
>Depends both on the command as well as what's illegal about it. As another
data
>point, PMDF will reject a command when the command syntax itself, as
opposed to
>the arguments to the command, is illegal. When an argument is illegal it
>depends on what the argument is used for. In the case of a malformed address
>argument to a MAIL FROM command, for example, PMDF doesn't care since it
isn't
>essential in getting a message delivered, and experience has shown that
>rejecting such messages on the basis of a potential problem returning a
>nondelivery notification later is not what users want.
>
>PP, on the other hand, is much more picky about this sort of thing. I don't
>believe it will let an invalid argument to MAIL FROM through at all.

So the command is checked but not the parameters?  Is this healthy?
Are there reasons that the parameter is not checked?  I mean if it
gets the MAIL FROM address wrong, it cannot bounce the message back
anyways.

>> I checked around with
>> a couple of implementations over the weekend, and
>> not one of them did anything seeming intelligent
>> if I entered the following lines:
>
>> MAIL FROM:<jack@jacks world%>
>>  or
>> RCPT TO:<jack@jacks world%>
>
>> No error returns or anything.  Both the '%' and the ' '
>> are illegal on the domain name side.
>
>However, the % is somewhat more problematic. As far as I know it is
>syntactically legal to have it in the domain part of an address. The fact
that
>there are no valid Internet domains that have a % character in them is a
>administrative issue, pure and simple -- as the DNS folks often point out,
the
>restriction of domain names to alphanumerics plus dashes is purely an
>administrative, not a technical, matter, since the DNS can in practice
>contain almost anything.

Um... actually, according to the RFC821 grammar (which we are all
bound to until 821bis is finished), the domain part of the address
itself is a series of parts, each separated by dots, with an
alphabetic at the front; alphas, numerics, and a dash in the middle;
and an alpha or numeric character at the end.

i.e. a12.com is legal, as is a1-2.com, but 1.com, a1-.com, and -1.com
are illegal... according to 821 at least.

I guess I am looking at this group to tell me what I should be
doing with a malformed SMTP level address?  Should I accept it
and deal with it later?  Or return some error code (if so, which
one)?

regards,
Jack (just trying to follow the specs which are vague on this point)
-------------------------------------------------
Jack De Winter - Wildbear Consulting, Inc.
(519) 576-3873		http://www.wildbear.on.ca/

Author of SLMail(95/NT) (http://www.seattlelab.com/) and other great products.