Re: [ietf-smtp] CHUNKING and PIPELINING

Viktor Dukhovni <ietf-dane@dukhovni.org> Tue, 09 March 2021 20:47 UTC

Return-Path: <ietf-dane@dukhovni.org>
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 37FE13A0BFF for <ietf-smtp@ietfa.amsl.com>; Tue, 9 Mar 2021 12:47:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 C0IZ1DBcPIVf for <ietf-smtp@ietfa.amsl.com>; Tue, 9 Mar 2021 12:47:19 -0800 (PST)
Received: from straasha.imrryr.org (straasha.imrryr.org [100.2.39.101]) (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 D7E1F3A0BFD for <ietf-smtp@ietf.org>; Tue, 9 Mar 2021 12:47:19 -0800 (PST)
Received: from [192.168.1.177] (unknown [192.168.1.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by straasha.imrryr.org (Postfix) with ESMTPSA id C3749CA229 for <ietf-smtp@ietf.org>; Tue, 9 Mar 2021 15:47:18 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\))
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
In-Reply-To: <04ead364-65c1-436f-a9bb-c92d009db1c1@digilicious.com>
Date: Tue, 09 Mar 2021 18:47:18 -0200
Content-Transfer-Encoding: quoted-printable
Reply-To: ietf-smtp@ietf.org
Message-Id: <E3A58FCB-7116-4EAC-8831-32CE426AADBC@dukhovni.org>
References: <b1202e49-26b2-35d8-0db7-bb94acd0d52f@wizmail.org> <01RWCSPP4820005PTU@mauve.mrochek.com> <1AFA5DBF-325F-4943-BBE3-45311CC485CA@dukhovni.org> <01RWEGEP5NI8005PTU@mauve.mrochek.com> <290B287C-B5BB-442D-8B30-9EF42C34E33F@dukhovni.org> <04ead364-65c1-436f-a9bb-c92d009db1c1@digilicious.com>
To: ietf-smtp@ietf.org
X-Mailer: Apple Mail (2.3654.60.0.2.21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/kwgn9QgmxuVWjw-hKNcrg58MvEY>
Subject: Re: [ietf-smtp] CHUNKING and PIPELINING
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: Tue, 09 Mar 2021 20:47:21 -0000

> On Mar 8, 2021, at 10:45 PM, Gene Hightower <gene@digilicious.com> wrote:
> 
> I can pipeline QUIT after BDAT nnnn LAST to Google's servers and it
> seems to work. Works with Microsoft/Outlook, too.

Thanks, I just tried it, and it worked for me as well.
Jeremy, was there perhaps a bug in your code?

[slightly obfuscated transcript]:

< 220 mx.google.com ESMTP m18si8702635qkn.9 - gsmtp
> EHLO amnesiac.example
< 250-mx.google.com at your service, [192.0.2.1]
< 250-SIZE 157286400
< 250-8BITMIME
< 250-STARTTLS
< 250-ENHANCEDSTATUSCODES
< 250-PIPELINING
< 250-CHUNKING
< 250 SMTPUTF8
> MAIL FROM:<nobody@example.org>
> RCPT TO:<nobody@gmail.com>
< 250 2.1.0 OK m18si8702635qkn.9 - gsmtp
< 250 2.1.5 OK m18si8702635qkn.9 - gsmtp
> BDAT 129
> BDAT 0 LAST
> QUIT
< 250 2.0.0 OK m18si8702635qkn.9 - gsmtp
< 250 2.0.0 OK m18si8702635qkn.9 - gsmtp
< 221 2.0.0 closing connection m18si8702635qkn.9 - gsmtp

A tcpdump confirms that pipelining took place:

25 > 34153: Flags [P.], length 53: SMTP: 220 mx.google.com ESMTP e16si7561792qts.371 - gsmtp
34153 > 25: Flags [P.], length 26: SMTP: EHLO amnesiac.example
25 > 34153: Flags [P.], length 168: SMTP: 250-mx.google.com at your service, [192.0.2.1]
34153 > 25: Flags [P.], length 64: SMTP: MAIL FROM:<nobody@example.org>
25 > 34153: Flags [P.], length 42: SMTP: 250 2.1.0 OK e16si7561792qts.371 - gsmtp
25 > 34153: Flags [P.], length 42: SMTP: 250 2.1.5 OK e16si7561792qts.371 - gsmtp
34153 > 25: Flags [P.], length 158: SMTP: BDAT 129
25 > 34153: Flags [P.], length 42: SMTP: 250 2.0.0 OK e16si7561792qts.371 - gsmtp
25 > 34153: Flags [P.], length 42: SMTP: 250 2.0.0 OK e16si7561792qts.371 - gsmtp
25 > 34153: Flags [P.], length 58: SMTP: 221 2.0.0 closing connection e16si7561792qts.371 - gsmtp

-- 
	Viktor.