Re: regarding illegally formed address and commands

Valdis.Kletnieks@vt.edu Wed, 25 December 1996 15:21 UTC

Received: from cnri by ietf.org id aa14502; 25 Dec 96 10:21 EST
Received: from list.cren.net by CNRI.Reston.VA.US id aa09437; 25 Dec 96 10:21 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 JAA06230; Wed, 25 Dec 1996 09:53:15 -0500 (EST)
Received: from black-ice.cc.vt.edu (root@black-ice.cc.vt.edu [128.173.14.71]) by list.cren.net (8.7.6/8.6.12) with ESMTP id JAA06216 for <ietf-smtp@list.cren.net>; Wed, 25 Dec 1996 09:53:05 -0500 (EST)
Received: from black-ice.cc.vt.edu (valdis@LOCALHOST [127.0.0.1]) by black-ice.cc.vt.edu (8.8.4/8.8.4) with ESMTP id JAA97372; Wed, 25 Dec 1996 09:53:03 -0500
Message-Id: <199612251453.JAA97372@black-ice.cc.vt.edu>
Date: Wed, 25 Dec 1996 09:53:02 -0500
Sender: owner-ietf-smtp@list.cren.net
Precedence: bulk
From: Valdis.Kletnieks@vt.edu
To: Jack De Winter <jack@wildbear.on.ca>
Cc: ietf-smtp@list.cren.net
Subject: Re: regarding illegally formed address and commands
In-Reply-To: Your message of "Tue, 24 Dec 1996 20:34:38 EST." <3.0.32.19961224203437.00f150cc@lacroix>
References: <3.0.32.19961224203437.00f150cc@lacroix>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <67412.851525582.1@black-ice.cc.vt.edu>
X-URL: http://black-ice.cc.vt.edu/~valdis/
X-Listprocessor-Version: 8.1 beta -- ListProcessor(tm) by CREN

On Tue, 24 Dec 1996 20:34:38 EST, "Jack De Winter" said:
> what the best response for an illegally formed RCPT is.  I would want
> to make it separate enough that it would stand out.
Well, from RFC821, section 4.2.1 (a whole table of replies
sorted by function code):

501 Syntax error in parameters or arguments

This seems to be a reasonable reply for a bad RCPT TO:.

Of course, Sendmail 8.8.4 gives a 250 at the initial connection - it
appears to do the syntax checking later.  I guess that works well for
the general case (as you don't slow down the mainline code with a
check), and only loses big time if the MAIL FROM: is also broken
so you can't generate a bounce.  But there are those who would claim
that such people deserve to lose until they fix their configs...

				Valdis Kletnieks
				Computer Systems Engineer
				Virginia Tech