Re: [ietf-smtp] Return codes, was Updated draft for "SMTP Response for Detected Spam"

Ned Freed <ned.freed@mrochek.com> Thu, 31 March 2022 17:55 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 F0D233A15F7 for <ietf-smtp@ietfa.amsl.com>; Thu, 31 Mar 2022 10:55:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.11
X-Spam-Level:
X-Spam-Status: No, score=-7.11 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, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 6qAZUWE1ghMV for <ietf-smtp@ietfa.amsl.com>; Thu, 31 Mar 2022 10:55: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 A5F3F3A15E8 for <ietf-smtp@ietf.org>; Thu, 31 Mar 2022 10:55:48 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01SBH9E143J4001UC9@mauve.mrochek.com> for ietf-smtp@ietf.org; Thu, 31 Mar 2022 10:50:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mrochek.com; s=201712; t=1648749044; bh=4jv5Vy6AqlqmqV9Dw7zuM+DCLKZpATuY+uFdg2sUZp0=; h=Cc:Date:From:Subject:In-reply-to:References:To:From; b=WUqfKF8uqk1eIBYmGXCcaz9Psex1oZk14M/o6PRTuhvs09oTbUhunRC1YYVFU8k8q vEIEWTwnDco8bKHdxiZ1WFEnLwbUG1OpxVbPK4+KIVtDYzjf47z/hpdEHBpsHZT5/I KnRFAJxmLMNF2sXbJaQGOJKdVwU19VH1eeLdfA9A=
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 <01SBFOAZW5C0000RIW@mauve.mrochek.com>; Thu, 31 Mar 2022 10:50:42 -0700 (PDT)
Cc: ietf-smtp@ietf.org, john-ietf@jck.com
Message-id: <01SBH9DZO7VA000RIW@mauve.mrochek.com>
Date: Thu, 31 Mar 2022 10:45:48 -0700
From: Ned Freed <ned.freed@mrochek.com>
In-reply-to: "Your message dated Thu, 31 Mar 2022 13:08:16 -0400" <20220331170817.756483A1ED82@ary.qy>
References: <44D715B7767FFD3836B2E9B5@PSB> <20220331170817.756483A1ED82@ary.qy>
To: John Levine <johnl@taugh.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/WQ9Ax0ysGOxzYrA4_gu3QVcYw10>
Subject: Re: [ietf-smtp] Return codes, was Updated draft for "SMTP Response for Detected Spam"
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: Thu, 31 Mar 2022 17:55:54 -0000

In our world at least, use of previously undefined status requires an
extension. This is because a certain library for a certain language whose
name begins with "J" throws an exception when it sees a status code it
doesn't recognize.

Of course you can modify the app to catch and ignore the exception, but
customrs are curiously reluctant to do that.

Maybe this implies that a ACCEPTANYSYNTACTICALLYVALIDSTATUSCODE extension
would be useful. Or not.

				Ned

> It appears that John C Klensin  <john-ietf@jck.com> said:
> >Let me add one thing to your suggestions.  While it does not
> >appear in the headers, the last sentence of Section 1 of the
> >current draft claims that this updates RFC 5321.  I suppose that
> >is necessary because it adds a reply code that is not in the
> >list that now appears in 5321, following the model of RFC 7504.

> This reminds me, why don't we have an IANA registry for SMTP return
> codes?  That would greatly simplify exercises like this.

> I suggested to Alex that his draft needs to define an extension to let
> client MTAs tell servers that they understand 259:

>  ehlo cruddy.mail.org
>  250-sceptical.server.com
>  250-STARTTLS
>  250-PIPELINING
>  250-ENHANCEDSTATUSCODES
>  250 MAYBESPAM

>  mail from:<sleazy@sleazy.org> MAYBESPAM
>  250 2.1.0 Sender accepted.

>  rcpt to:<victim@somewhere.wtf>
>  250 2.1.5 Recipient accepted.

>  data
>  354 Go ahead
>  -- blah blah blah --
>  .
>  259 2.6.8 That smelled pretty bad.


> In that case it doesn't update 5321, since it's not changing what SMTP
> clients and servers do in the absence of that extension, but it would
> be nice to have a registry so the codes don't accidentally overlap.

> With respect to 259 vs 559, Comcast is a pretty big mail system. If
> they think this could be useful, which they apparently do, I think it
> would be a fine idea to try the experiment (which does not need an RFC
> since we are still not the Network Police) and then later perhaps
> advance the proposal with experience of what it does. Experiments
> would be easier if it were possible to reserve the code points without
> a lot of overhead.

> R's,
> John

> _______________________________________________
> ietf-smtp mailing list
> ietf-smtp@ietf.org
> https://www.ietf.org/mailman/listinfo/ietf-smtp