Re: [ietf-smtp] Possible contribution to moving forward with RFC5321bis SMTP

John C Klensin <john-ietf@jck.com> Fri, 27 December 2019 23:25 UTC

Return-Path: <john-ietf@jck.com>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B76012013B for <ietf-smtp@ietfa.amsl.com>; Fri, 27 Dec 2019 15:25:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xQsj9aYuld0k for <ietf-smtp@ietfa.amsl.com>; Fri, 27 Dec 2019 15:25:58 -0800 (PST)
Received: from bsa2.jck.com (ns.jck.com [70.88.254.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DFA301200B6 for <ietf-smtp@ietf.org>; Fri, 27 Dec 2019 15:25:57 -0800 (PST)
Received: from [198.252.137.10] (helo=PSB) by bsa2.jck.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from <john-ietf@jck.com>) id 1ikyzU-000Jr9-H8 for ietf-smtp@ietf.org; Fri, 27 Dec 2019 18:25:56 -0500
Date: Fri, 27 Dec 2019 18:25:50 -0500
From: John C Klensin <john-ietf@jck.com>
To: ietf-smtp@ietf.org
Message-ID: <EFFC416C6D5D0DE2B2588D70@PSB>
In-Reply-To: <ABD7357F-D6B4-4E0A-807A-90DCBD6DB5CB@dukhovni.org>
References: <FCDE38AEA7DDB9BB0FB206F9@PSB> <0605ee67-86eb-3e27-26b0-7a1c16a37bee@tana.it> <553FE6792AFBD83DA7DFE7F0@PSB> <2BB1805D-05F3-47B6-9897-45C4AE05EB08@dukhovni.org> <C620BDD6C0C346E6E9651168@PSB> <ABD7357F-D6B4-4E0A-807A-90DCBD6DB5CB@dukhovni.org>
X-Mailer: Mulberry/4.0.8 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-SA-Exim-Connect-IP: 198.252.137.10
X-SA-Exim-Mail-From: john-ietf@jck.com
X-SA-Exim-Scanned: No (on bsa2.jck.com); SAEximRunCond expanded to false
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/vPtoPUXkSQCCfQmLDL7G3gP30EQ>
Subject: Re: [ietf-smtp] Possible contribution to moving forward with RFC5321bis SMTP
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Dec 2019 23:25:59 -0000


--On Friday, December 27, 2019 16:08 -0500 Viktor Dukhovni
<ietf-dane@dukhovni.org> wrote:

>> On Dec 27, 2019, at 1:42 PM, John C Klensin <john@jck.com>
>> wrote:
>> 
>>> It seems that the -02 has not yet been uploaded, did you mean
>>> for it to be already available?
>> 
>> Sorry... meant -01.  Been thinking about and working on -02
>> too much.   It should be up in the next couple of hours.
> 
> Thanks, I see it now.  Thanks for including the "552 -> 442"
> issue, much appreciated.
> 
> I'd also like to see a similar placeholder for clarifying the
> semantics of a "554" greeting.  Is the client expected to
> immediately bounce the message, or look for a better MX host?
> The spec is not clear and implementations vary.

The text says (Section 4.2.4.2) 

	"... including 554 and the temporary 450, are used for
	more transient situations and situations in which an
	SMTP server cannot or will not deliver to (or accept
	mail for) a particular system or mailbox for policy
	reasons rather than ones directly related to SMTP
	processing."

I'd construe "more transient situations" especially if the code
is used instead of 220 when the client attempts to open a
connection, as implying that working down the MX chain is
entirely appropriate.  But YMMD here.  A different statement of
the problem is that better statements needed about when a server
should reply to a connection opening attempt with a 521 code and
when it should use 554 (or 556).   Section 4.2.4.2 is probably
where that should go, but my notes indicate it is new to 5321bis
and was introduced after discussions associated with RFC 7504.
So it should be considered a preliminary proposal, open for
suggestions about rewriting or there modifications once we
actually start working on the document (as distinct from getting
a foundation and issues list in place for doing that).


> Past behaviour by some MTAs (returning a 554 banner under
> load) made the second choice more appropriate, but I've not
> seen recent reports of whether that's ongoing.

Probably worth reviewing RFC 1846 to see what it says about
these issues.  I have not done that yet and it isn't at the top
of my queue.

> More recently some users are running into policy-based 554
> greeting rejects, and don't want to keep retrying message that
> will be consistently rejected.

Well, if the policy is that the server isn't accepting mail from
anyone, ever, as a matter of policy, then it probably ought to
be returning a 521 in response to the connection attempt and be
done with it.  If the policy reason is "we like some would-be
senders but not you and you should either go to hell or find
some out-of-band way to appeal our decision", then maybe neither
code is right and we should be thinking about a new code.  

As has been pointed out about some other issues, anything we
change (or even clarify) here is going to have a long
implementation tail, so clients had best be prepared to use the
"first digit" rule and/or to aggressively apply the robustness
principle.

> I'd like to know which is the expected client behaviour, and
> which is a work-around for particular unexpected circumstances
> a client may encounter.

See above, with the understanding that is not intended to be an
answer but the beginning of a discussion when we are ready to
have such discussions.  I've provided additional text in what
will become rfc5321bis-03, but don't hold your breath waiting
for it to appear: unless important new issues turn up or I get
instructions to the contrary from the ADs, -03 is likely to be
delayed until after we have a WG charter in place or at least
under active consideration.

best,
   john