Re: [ietf-smtp] return-path vs delivered-to, was New Version Notification for draft-crocker-email-deliveredto-00.txt

John Levine <johnl@taugh.com> Mon, 15 February 2021 20:50 UTC

Return-Path: <johnl@iecc.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 D453B3A113B for <ietf-smtp@ietfa.amsl.com>; Mon, 15 Feb 2021 12:50:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.05
X-Spam-Level:
X-Spam-Status: No, score=0.05 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=sRZ7ZIeb; dkim=pass (2048-bit key) header.d=taugh.com header.b=yWXpEDoT
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 Cf8QMfAe3IGc for <ietf-smtp@ietfa.amsl.com>; Mon, 15 Feb 2021 12:50:24 -0800 (PST)
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 8E3843A1138 for <ietf-smtp@ietf.org>; Mon, 15 Feb 2021 12:50:23 -0800 (PST)
Received: (qmail 15666 invoked from network); 15 Feb 2021 20:50:21 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:original-authentication-results:cleverness; s=3d2e.602ade8d.k2102; bh=5lwN2OeaASEhvZC+F81dE/FJhOVebooVVT/XtSBamv4=; b=sRZ7ZIebQ9iOTvUZRilKWkbXadS2A8LlUq7hB7VPu/qBVORNjWaGET72c20beBql5OHvBUbkdmthNPM9KU0Zj+WT+SrpLC6lAWIOT+Y8N1Ye+UKQB24TH/fL4Pp0OExFukUdmfUV+fusLWR+TNM9LGzROPpqZSs+9DxvIYUd2MH6kLYNAFy1RKnq9/X/h4CiniBUmGMP7AWuqa3dRZjLtDF/igBGPdHKMHvnV4W/OLB6u1F3JdwPYA5P58+UWo79Aaj5PJ3ZmuAID2F3Ynjz48NvW3FAm2CtcFlQEJlX1YDCnB9yZn9SqdMMeGlYBXjxxDy1BRdwlAfY+vNsrciojg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:original-authentication-results:cleverness; s=3d2e.602ade8d.k2102; bh=5lwN2OeaASEhvZC+F81dE/FJhOVebooVVT/XtSBamv4=; b=yWXpEDoTq25oP7/jpVdAg7OW0axfChbAveGM5x+OgRlVAJa3M0cAZKbibYl4hCpQUPKZXCJoi9/gQd8DZDw7T5eKuU7KmeUgsdCXSa+bSfOqzpj39cHba6TgpxEiRUre567xT9+WEvfPenpfVpqujOFMlIWCNKvZLOImQjfWha2wFV7uQ5SrqDNBsljK9iKpXDbYsKzCPo+G16wSaKgansYcxknZ+0k3pJMIiYrNlWk7p4A+Sn58v/DfK/gCHoVadFDL44ZkTqKwvdSHWlRxBrv1MjO5RV6FDr8wwdeEcZofjMshZBPV71u6TexSx71gC8hZlwpByG08+TAGHY9wXA==
Original-Authentication-Results: iecc.com; spf=pass spf.mailfrom=johnl@eaicheck.services.net
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; 15 Feb 2021 20:50:20 -0000
Received: by ary.qy (Postfix, from userid 501) id 67C656E009CE; Mon, 15 Feb 2021 15:50:20 -0500 (EST)
Date: Mon, 15 Feb 2021 15:50:20 -0500
Message-Id: <20210215205020.67C656E009CE@ary.qy>
From: John Levine <johnl@taugh.com>
To: ietf-smtp@ietf.org
Cc: john-ietf@jck.com
In-Reply-To: <C600B92F26F58A4D653F125D@PSB>
Organization: Taughannock Networks
X-Headerized: yes
Cleverness: minimal
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/1kr1mtyk0UMhcysVZzr8U7JWggA>
Subject: Re: [ietf-smtp] return-path vs delivered-to, was New Version Notification for draft-crocker-email-deliveredto-00.txt
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: Mon, 15 Feb 2021 20:50:27 -0000

In article <C600B92F26F58A4D653F125D@PSB> you write:
>First of all, I think what Pete and I are both saying is that it
>is important that the specification be clear about ordering.
>That could be Return-path: on top, "Delivered-to:" on top, ...

I took a look at what qmail and postfix actually do.  I believe they
add most if not all of the Delivered-To headers found in the wild.

* If they add both headers at the same time, the Return-Path is
invariably at the top, like it says in RFC 5321.

* Both of them often add only Delivered-To when they rewrite an address or
forward mail internally. It is quite common to find Delivered-To
intermixed with other headers added along the way. See the example
below.

So here's a radical, different, new idea: let's just say Delivered-To
is a trace header. Because that's what it is.

R's,
John


== headers from a message that started on a postfix system and ended up on a qmail system ==

Return-Path: <johnl@eaicheck.services.net>
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on gal.iecc.com
X-Spam-Level:
X-Spam-Status: No, score=-2.0 required=4.4 tests=BAYES_00,DKIM_SIGNED,
    DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS autolearn=ham
    autolearn_force=no version=3.4.4
Delivered-To: johnl@iecc.com
Received: (qmail 13481 invoked from network); 15 Feb 2021 20:40:01 -0000
Authentication-Results: iecc.com; spf=pass spf.mailfrom=johnl@eaicheck.services.net
    spf.helo=eaicheck.services.net smtp.remote-ip="108.161.133.214"; dkim=pass
    header.d=eaicheck.services.net header.s=echo header.a=rsa-sha256 header.b="CRIguI7m"; dmarc=pass
    header.from=eaicheck.services.net polrec.p=reject polrec.pct=100
Received: from eaicheck.services.net (eaicheck.services.net [108.161.133.214])
  by mail1.iecc.com ([64.57.183.56])
  with ESMTP via TCP (port 29335/25) id 670487549; 15 Feb 2021 20:40:01 -0000
Received: by eaicheck.services.net (Postfix)
    id 1ADD989349; Mon, 15 Feb 2021 15:40:00 -0500 (EST)
Delivered-To: johnl@eaicheck.services.net
Received: from eaicheck.services.net (localhost [127.0.0.1])
    by eaicheck.services.net (Postfix) with ESMTP id 05A428934C
    for <johnl@eaicheck.services.net>; Mon, 15 Feb 2021 15:40:00 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=eaicheck.services.net;
     h=to:subject:message-id:date:from; s=echo; bh=SrP2xzth3GnfaMOt7
    cSHDvAgYRXQi2Hw/QlB/TmEnQg=; b=CRIguI7msBYf+96yigHcc5v3MF37ztRxd
    aE/M+syLgyc8DxjWlRGO9dc5XhCsjry9216bTmkq+aECl3/KRW+5Dc0i1JOJ3Rw/
    Lv4q1kZl5tbanpKBrIBVFDL5fZJQxZJEwLcmmH+g6UIXy+qWLHogmbVWHTICp1EN
    dW35zH3VBi9IthzGoEr+w2Ok40lyqJqUdKElYFdas6Z9gIXnJLE3Sg7+J3j/Lo39
    MOoyub363Wj4wYdZ3BGZa3sisPgi6Tj3WkkC2SGTp3AyrbcdXkbYtUte+Yn8LIm1
    k6/Y0JTGs/kyMliL3CNzEbBK3Kb8dao6lki+zrK+pM7C1pkVSdTxQ==
Received: by eaicheck.services.net (Postfix, from userid 100)
    id F1C158934A; Mon, 15 Feb 2021 15:39:59 -0500 (EST)