Re: [ietf-smtp] ALPN

John R Levine <johnl@taugh.com> Wed, 28 July 2021 18:00 UTC

Return-Path: <johnl@taugh.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 837D33A0A51 for <ietf-smtp@ietfa.amsl.com>; Wed, 28 Jul 2021 11:00:27 -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 (2048-bit key) header.d=iecc.com header.b=l4vUGlOa; dkim=pass (2048-bit key) header.d=taugh.com header.b=J6zYcRS1
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 PAW5WkWrnTM5 for <ietf-smtp@ietfa.amsl.com>; Wed, 28 Jul 2021 11:00:21 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 6C8E03A0AAA for <ietf-smtp@ietf.org>; Wed, 28 Jul 2021 11:00:21 -0700 (PDT)
Received: (qmail 51251 invoked from network); 28 Jul 2021 18:00:19 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type; s=c831.61019b33.k2107; bh=bC4nf7YOO4Ey5W9xwylYPPJoa179/gRlGBExo1+QxE4=; b=l4vUGlOaod0mBv1mfHnBULkRpwgz1PLeAJ4zKexglKmaWAyY+Si2NyWMHSH334NQp0Wtaz8qWMgXrj2USItdjmvXQ2reZ1EzXalLrrY5R7RC0sHfzfPcCHVqjAnAzJk3nMww5ORgO7uPJbFirYx2zb64kNxC3ut02C6bhd3jNY7dBe7UMUGTfSbVFiHbSyYFE3EEvVskAmA9uaqZ8qWukUDtkFJWVjF/oulowO7VFkFbZ70cxzkoi9sckuNH/lKNRf8gpMSXY+bVYnmrOI2j3dhQF/GJ4qJx0aEhyE+xdimn+fIXupF7oAFpjvcx2fe+JibOvv0gen/Wqzzzmg7iQw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type; s=c831.61019b33.k2107; bh=bC4nf7YOO4Ey5W9xwylYPPJoa179/gRlGBExo1+QxE4=; b=J6zYcRS1aeiegU7G5SJ1am2M1Xbo/OYS0hV+1MH9JbzP35aS9eYqsZoMPP4a5wOK06WKQv8w1URXe7fJAvF1/uWKg4UFQTF110qUYE3qhfVYrgP21yXEjd1T2+mowSVqxOqZJ8MvG7i0An4a0oLesEQR4yZLSlEhr9IwwGMpgPmxcyg35eOIUdGfhWABUe4UKHAumUA47TCZYGJtU0vN3JpwpgBEiKm17H0tRcIWwGbCVktQCNIsfCWXzVSdt0KKAvY9Npr1nj2ye4COWO4dnXO+RdtQ+joehEeloADPZN87W+lBWd+dhCRYv37FnCd2qdJB7jgowFVruBhQp+3fXw==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 28 Jul 2021 18:00:18 -0000
Received: by ary.qy (Postfix, from userid 501) id 0230D25412BB; Wed, 28 Jul 2021 14:00:16 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id 4F35C254129D; Wed, 28 Jul 2021 14:00:16 -0400 (EDT)
Date: Wed, 28 Jul 2021 14:00:16 -0400
Message-ID: <d3b4692b-c01a-81ec-11e4-2dedc5438bb9@taugh.com>
From: John R Levine <johnl@taugh.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, ietf-smtp@ietf.org
X-X-Sender: johnl@ary.qy
In-Reply-To: <37b658f3-9ff1-bfda-333d-b2f15ee73443@isode.com>
References: <20210710214357.911F71FF0F6B@ary.qy> <37b658f3-9ff1-bfda-333d-b2f15ee73443@isode.com>
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/y363ShHLypv-r4t3xss-lWflYcg>
Subject: Re: [ietf-smtp] ALPN
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: Wed, 28 Jul 2021 18:00:28 -0000

On Wed, 28 Jul 2021, Alexey Melnikov wrote:
>> I dunno.  It's not immediately obvious what the problem would be
>> to share the same ALPN among all four mail applications, SMTP,
>> SUBMIT, IMAP, and POP.
>
> I think having separate allocations for them would be clean design.
>
> However, ALPN seem to be intended for multiple protocols sharing the same 
> IP/port. This doesn't seem to apply to SMTP/SUBMIT/IMAP/POP. Or am I missing 
> the point of ALPN?

I took another look and as far as I can tell, ALPN does two things.  The 
original motivation was to allow http/1 and http/2 on the same port even 
though http/2 isn't backward compatible with /1.  The ongoing motivation 
is to allow every possible protocol to run on port 443 so they can get 
through firewalls.

I think an ALPN for SUBMIT would make sense since it is somewhat common to 
run a submit-ish server on a non-standard port when your mail server is 
behind a spam filtering proxy or the like.  Since SMTP only does STARTTLS, 
by the time there was an ALPN negotiation it's too late.

Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail. https://jl.ly