Re: [ietf-smtp] [Proposal] 250-MARKDOWN

valdis.kletnieks@vt.edu Wed, 09 January 2019 09:52 UTC

Return-Path: <valdis@vt.edu>
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 D04AE129B88 for <ietf-smtp@ietfa.amsl.com>; Wed, 9 Jan 2019 01:52:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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 UjVyVUH8VC_n for <ietf-smtp@ietfa.amsl.com>; Wed, 9 Jan 2019 01:52:45 -0800 (PST)
Received: from omr2.cc.vt.edu (omr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:33:fb76:806e]) (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 4764312008A for <ietf-smtp@ietf.org>; Wed, 9 Jan 2019 01:52:45 -0800 (PST)
Received: from mr6.cc.vt.edu (mr6.cc.ipv6.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x099qgX3012232 for <ietf-smtp@ietf.org>; Wed, 9 Jan 2019 04:52:43 -0500
Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x099qb0d016788 for <ietf-smtp@ietf.org>; Wed, 9 Jan 2019 04:52:42 -0500
Received: by mail-qk1-f199.google.com with SMTP id k66so5795779qkf.1 for <ietf-smtp@ietf.org>; Wed, 09 Jan 2019 01:52:42 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:date:message-id; bh=0mEuu9hFH+mnjKYMwquVxtcAwaShUn2ApVNNXR956ks=; b=FRfZT3pbf2E+kyJG3fxfK0mjERJHdLOuwF2PLm4v+x3bAh2o7WDpYRhxZrcO4uKXrY VvR1OhkFv8RgqZ8S1EGW3V5OjvzJM/cIqTuKBvPXndqg5AqaPi/pTWbHq+XnZ4wAevMZ a7Ci812mjsl/owvRd3mLaGukCHKqHVveiRe7Y2bK0MYpwQKxhQZfj63nsoqSP8OTrXz0 cGH79l2teghj5536kkQrlQuKBLmTBbNLCpymbX/faD9BnatG0/MZzbEgbdX4kPi9foeH WoSiaN+IaTfE/ZJSOHgDsP7nQk2qZpHl16w6ci6xXb0ntIFtZLuHnqkwCf1f0eCOrt1z KY2Q==
X-Gm-Message-State: AJcUukf+5n4Zj3AO1+dwxdwWsVWrY2PfMrlzMVng5JBoZkS8SsfpFhft ShmuHZY7cuQGyH+Y+JxASVqZBNLAJnQW3U+oVJW3NFzrxWvMTOxfMPnh0EgC03A6sGaG2Ozy3JQ Z40u/fQ+h6ra2TypQItc0Bw==
X-Received: by 2002:ac8:1add:: with SMTP id h29mr4862190qtk.258.1547027557132; Wed, 09 Jan 2019 01:52:37 -0800 (PST)
X-Google-Smtp-Source: ALg8bN4ftD3Kqqv7PgifyBw0h1R4DKAjAta4EF2G5XvA4Rii4v1HL6xdevvHEAWK8pAf11GB6HwKkQ==
X-Received: by 2002:ac8:1add:: with SMTP id h29mr4862177qtk.258.1547027556833; Wed, 09 Jan 2019 01:52:36 -0800 (PST)
Received: from turing-police.cc.vt.edu ([2601:5c0:c001:4341::359]) by smtp.gmail.com with ESMTPSA id p42sm37838352qte.8.2019.01.09.01.52.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 01:52:35 -0800 (PST)
Sender: Valdis Kletnieks <valdis@vt.edu>
From: valdis.kletnieks@vt.edu
X-Google-Original-From: Valdis.Kletnieks@vt.edu
X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev
To: Gilles Chehade <gilles@poolp.org>
cc: Viruthagiri Thirumavalavan <giri@dombox.org>, ietf-smtp@ietf.org
In-reply-to: <20190109082034.GA75621@ams-1.poolp.org>
References: <CAOEezJRwe9iSbGyBfyHNPn8=2avo6bAoFY56++HLY5+FZHhWgw@mail.gmail.com> <144aafd5-7468-4d55-a7b7-bead5cc67e1e@email.android.com> <CAOEezJTakEcxq7MtYXTjjRAPCM8uGcfzMUHetRPY6enn-Bb10w@mail.gmail.com> <20190109082034.GA75621@ams-1.poolp.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 09 Jan 2019 04:52:34 -0500
Message-ID: <6501.1547027554@turing-police.cc.vt.edu>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/M0msSHKUTRZwyiqOsqE0kEhEjdI>
Subject: Re: [ietf-smtp] [Proposal] 250-MARKDOWN
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, 09 Jan 2019 09:52:48 -0000

On Wed, 09 Jan 2019 09:20:34 +0100, Gilles Chehade said:

> well, as someone writing a server implementation:
>
>       When a server says that "I recognize markdown format"
>
> that sentence doesn't make sense to me because the server does not recognize a
> format or another, it's in charge of the transport, not of rendering or making
> any sense out of the DATA part. it feels like a violation of layer, DATA spill
> over transport.

And you're totally correct - it *is* a layering violation.  For ages, there's
been a *very* strict separation between the SMTP transport layer and the
RFC822/MIME in the DATA portion. The only extension listed in the below EHLO
that isn't *strictly* SMTP is '8bitmime' - and *that* only gets included
because there is a documented non-lossy and invertable way to convert from
'Content-Transfer-Encoding: 8bit' down to 7bit if a non-8bit-clean path is
encountered.

Consider that the following SMTP transaction is actually *legal* and accepted
by Sendmail:

[~] telnet ::1 25
Trying ::1...
Connected to ::1.
Escape character is '^]'.
220 turing-police.cc.vt.edu ESMTP Sendmail 8.15.2/8.15.2; Wed, 9 Jan 2019 04:26:52 -0500
EHLO localhost
250-turing-police.cc.vt.edu Hello turing-police.cc.vt.edu [IPv6:0:0:0:0:0:0:0:1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
MAIL FROM:<>
250 2.1.0 <>... Sender ok
RCPT TO:<valdis@localhost>
250 2.1.5 <valdis@localhost>... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
There are exactly zero RFC822 headers in this DATA package.
.
250 2.0.0 x099QqgX005006 Message accepted for delivery
QUIT
221 2.0.0 turing-police.cc.vt.edu closing connection

And Sendmail Does The Right Thing - takes the whole thing, even lacking rfc822
headers (which it doesn't need for delivery because the RCPT TO told it
everything it needed to know).  It fixes up Date: and Message-id: (possibly
debatable for port 25), adds the required Received: and Return-Path: headers,
and hands the whole thing to procmail, which stashes it into an nmh file in my
inbox folder.

[~] scan +inbox last:3
 65122  *    M 12:54 +00     19k IBM Announcement   IBM United States Announcement Letters
 65131  *   *  18:15 +01      4k Matthias Waehlisc  Re: BGP Experiment <<It's well-known: A fork of Quagga. Cheers matth
 65141 U     ? 04:26 -05      0k To:                 <<There are exactly zero RFC822 headers in this DATA package. 
[~] cat Mail/inbox/65141
Return-Path: <MAILER-DAEMON@turing-police.cc.vt.edu>
Received: from localhost (turing-police.cc.vt.edu [IPv6:0:0:0:0:0:0:0:1]) 	by turing-police.cc.vt.edu (8.15.2/8.15.2) with ESMTP id x099QqgX005006 	for <valdis@localhost>; Wed, 9 Jan 2019 04:27:15 -0500
Date: Wed, 9 Jan 2019 04:26:52 -0500
Message-Id: <201901090927.x099QqgX005006@turing-police.cc.vt.edu>

There are exactly zero RFC822 headers in this DATA package.