Re: [ietf-smtp] [ dispatch] Forced SMTP redirects

Ned Freed <ned.freed@mrochek.com> Fri, 19 March 2021 22:50 UTC

Return-Path: <ned.freed@mrochek.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 3E31A3A12D4 for <ietf-smtp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:50:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mrochek.com
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 53o1OWeGkmhj for <ietf-smtp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:50:48 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [98.153.82.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 349413A12B2 for <ietf-smtp@ietf.org>; Fri, 19 Mar 2021 15:50:48 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01RWUVTKDN3400EPN1@mauve.mrochek.com> for ietf-smtp@ietf.org; Fri, 19 Mar 2021 15:45:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mrochek.com; s=201712; t=1616193943; bh=rQ4T4Vd9jLnngeJS4Q9KQB1gsfBVP13ykCUoAtwdLGo=; h=Cc:Date:From:Subject:In-reply-to:References:To:From; b=jd/YZIt6HjlVYiRIfnXaN6Yd2zNVx8yJ3XUPAGSWX/Q5RUXCDj/ZgU5dCGAQpG1Bj AwSND39fRNpWiJcmQ5yfGsQA1DkIFbbsqxDoHpaAsnJtgOtVMGJPHxrt5/8nl8JniW WJDBNZw2Yrudbto8FdtqjDTvHJ7NDdYn0Du4p1Mg=
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: TEXT/PLAIN; CHARSET="us-ascii"
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01RWUVBXIOKG0085YQ@mauve.mrochek.com>; Fri, 19 Mar 2021 15:45:41 -0700 (PDT)
Cc: ietf-smtp@ietf.org
Message-id: <01RWUVTIFW580085YQ@mauve.mrochek.com>
Date: Fri, 19 Mar 2021 15:32:17 -0700
From: Ned Freed <ned.freed@mrochek.com>
In-reply-to: "Your message dated Fri, 19 Mar 2021 03:39:58 -0400" <B258F7AA-3FC4-47C7-8DB1-98BA423D597E@dukhovni.org>
References: <CAKFo7wkawgk-Yj676kE5MqK8XuebuArMexH-eOdq_Uo7ijdimQ@mail.gmail.com> <20200710015947.0BE2D1C78A2F@ary.qy> <CAKFo7w=MJBt0FdnCcOZCXZWdkd6Jinv4TqwdpefdoaCncbZH3Q@mail.gmail.com> <6AEA7D44C8037B32BC1F3810@PSB> <81d0132b-3ebf-2b0b-756b-503bb5afdb37@dcrocker.net> <8E2D8138-EE61-486A-B957-A922F0C6F4B3@dukhovni.org> <20210318003233.DC44C70A8F5D@ary.qy> <e90d22da-e124-4542-8ef6-83798f5725de@gulbrandsen.priv.no> <F5461844610EDF6715D08D1B@PSB> <503e5ae8-71a1-8c9e-33b3-5c475d0ad76f@pscs.co.uk> <C7297FCD-DA5A-43D1-972C-537171D4330F@wordtothewise.com> <B258F7AA-3FC4-47C7-8DB1-98BA423D597E@dukhovni.org>
To: Viktor Dukhovni <ietf-dane@dukhovni.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/RlqKgd6fh-QAU3em3b9qY0M2soE>
Subject: Re: [ietf-smtp] [ dispatch] Forced SMTP redirects
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, 19 Mar 2021 22:50:50 -0000

> > On Mar 18, 2021, at 10:55 AM, Laura Atkins <laura@wordtothewise.com> wrote:
> > MTAs that send high volumes of email do pay attention to the other
> > digits and the extended codes. In fact, many of them do full text parsing to try
> > and determine how they should handle future mail to that address.
> > https://smtpfieldmanual.com is one example.

> Is this "paying attention" really happening *during* delivery, to
> guide further progress of the SMTP transaction, or, as seems more
> likely, rather an after-the-fact forensic analysis to keep lists
> in good hygiene.

Exactly. The problem with paying attention during delivery and modifying your
behavior acordingly more or less precludes pipelining. And since the vast
majority of deliveries are successful, the cost of doing this far
outweighs the benefits.

> Detailed SMTP server replies are certainly useful forensically,
> what's under discussion in this thread, is to what extent the SMTP
> protocol engine in the sending client really needs to be concerned
> with such details.

Well... not just forensically. A particular response may divulge the
fact that a rate limit has been hit, an IP address has suffered
a reputation or may not have an established reputation, and so on.

But regardless of how the information is used, your point is valid: This all
happens later, where later may be the very next transaction, the next session,
or even after some committee has met and reviewed the logs.

> Occasionally, an MTA with an uncertain reputation may choose to
> conditionally soften a 5XX reply to a 4XX reply, if it has another
> means to reach the destination (from a different IP address, ...).

Quite right. And there are also a few cases where it makes sense to treat a
temporary error as permanent.

But this is all based on observation of server behavior. It's at a completely
different level than that of how an SMTP client is supposed to behave
during an SMtP session. 

> Perhaps that's the every-day reality for some sending systems, and
> in that case I can see these closely scrutinising the server reply.
> In most other cases, there's little reason to look beyond the first
> digit.

And even when there is reason, let's not forget that the focus of RFC 5321bis is
and needs to be on basic client behavior. The supposedly "simple" mail transfer
protocol is sufficiently complicated in practice that just doing that is more
than enough for the document to cover.

				Ned