Re: STARTTLS & EHLO: Errata text?

Hector Santos <hsantos@santronics.com> Sun, 01 February 2009 20:10 UTC

Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n11KAmhw003771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 1 Feb 2009 13:10:48 -0700 (MST) (envelope-from owner-ietf-smtp@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.14.2/8.13.5/Submit) id n11KAmQt003770; Sun, 1 Feb 2009 13:10:48 -0700 (MST) (envelope-from owner-ietf-smtp@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-smtp@mail.imc.org using -f
Received: from winserver.com (ntbbs.santronics.com [208.247.131.9]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n11KAlgq003762 for <ietf-smtp@imc.org>; Sun, 1 Feb 2009 13:10:48 -0700 (MST) (envelope-from hsantos@santronics.com)
Received: by winserver.com (Wildcat! SMTP Router v6.3.452.5) for ietf-smtp@imc.org; Sun, 01 Feb 2009 14:50:39 -0500
Received: from hdev1 ([65.10.45.22]) by winserver.com (Wildcat! SMTP v6.3.452.5) with ESMTP id 3003660968; Sun, 01 Feb 2009 14:50:37 -0500
Message-ID: <4985FCD8.8040305@santronics.com>
Date: Sun, 01 Feb 2009 14:49:44 -0500
From: Hector Santos <hsantos@santronics.com>
Organization: Santronics Software, Inc.
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
To: John C Klensin <john+smtp@jck.com>
CC: Tony Finch <dot@dotat.at>, ietf-smtp@imc.org
Subject: Re: STARTTLS & EHLO: Errata text?
References: <497DE492.4080506@pscs.co.uk> <497DED29.70402@att.com> <497ED420.30708@pscs.co.uk> <alpine.LSU.2.00.0901271403220.4546@hermes-2.csi.cam.ac.uk> <497F86CB.60904@att.com> <alpine.LSU.2.00.0901281434440.4546@hermes-2.csi.cam.ac.uk> <498088B8.9040404@pscs.co.uk> <alpine.LSU.2.00.0901291310080.4546@hermes-2.csi.cam.ac.uk> <4981C0D5.1010401@pscs.co.uk> <4981C6BD.2040900@att.com> <37F39FF37390694B69567838@PST.JCK.COM> <4981E1AB.9000002@att.com> <alpine.LSU.2.00.0901301832470.4795@hermes-2.csi.cam.ac.uk> <49835DE2.3030403@santronics.com> <alpine.LSU.2.00.0901312021190.14750@hermes-2.csi.cam.ac.uk> <4984C49C.5030401@santronics.com> <alpine.LSU.2.00.0902011706190.10756@hermes-2.csi.cam.ac.uk> <AE5689449BAC89829F0DD5E7@PST.JCK.COM>
In-Reply-To: <AE5689449BAC89829F0DD5E7@PST.JCK.COM>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smtp@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smtp/mail-archive/>
List-ID: <ietf-smtp.imc.org>
List-Unsubscribe: <mailto:ietf-smtp-request@imc.org?body=unsubscribe>

John C Klensin wrote:
> 
> 
> --On Sunday, February 01, 2009 17:14 +0000 Tony Finch
> <dot@dotat.at> wrote:
> 
>> On Sat, 31 Jan 2009, Hector Santos wrote:
>>> So the one question I did have was the response code from the
>>> server.  As shown, the server issued 550. It was something:
>>>
>>>    [TLS established]
>>>    C: MAIL FROM <xxxx>
>>>    S: 550 EHLO/HELO required.
>>>
>>> Shouldn't the server response be 503 (Bad Sequence of
>>> commands)?
>> ... 
>>> If so, should this be stated in the revised text?
>> Not in 3207 - this requirement is inherited from 5321.
> 
> IMO, that requirement, and the use of the codes, is perfectly
> clear in 5321 (at least to anyone who bothers to read it).  If
> someone disagrees, please send text.

Tony, SM, John,

Ok, let me try it this way:

I was thinking of 3207 with text similar to:

     The secured SMTP client MUST resend the EHLO command and the
     secured SMTP server MUST be prepared to issue an 503
     for any out of sequence commands by legacy 3207 clients.

Why?

Our server, and probably others, based on the original relaxed 
semantics "Client SHOULD resent EHLO/HELO" guideline, does not enforce 
it simply because it didn't say MUST.

In other words, the secured client can continue with a MAIL FROM and 
the normal reply codes associates with it apply, but not 503 because 
it wasn't deem necessary at this stage.

On the other hand, if 3207 is altered to enforce a MUST, then we need 
to change our server and in that vain, I reject this 3207 change to a 
MUST.  However, since most secured clients do resend EHLO, I don't see 
that as having an impact on existing installations.  Our secured 
server is not going to fail the secured session if the secured client 
does not resent EHLO.

So at the very least, if 3207 text is changed to MUST, it should 
include some additional text, call it a "reminder" text if you wish to 
the above text. Who knows, if the server in the example did issue the 
503, then maybe the OP's client designer might have seen the necessity 
to add logic to restart with EHLO, and thus, no discussion would be 
necessary.

-- 
Sincerely

Hector Santos, CTO
http://www.santronics.com
http://santronics.blogspot.com