Re: [Ietf-dkim] Question about lone CR / LF

John R Levine <johnl@taugh.com> Sat, 03 February 2024 22:10 UTC

Return-Path: <johnl@taugh.com>
X-Original-To: ietf-dkim@ietfa.amsl.com
Delivered-To: ietf-dkim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E1FAC14F5E3 for <ietf-dkim@ietfa.amsl.com>; Sat, 3 Feb 2024 14:10:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.107
X-Spam-Level:
X-Spam-Status: No, score=-7.107 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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="f/39ACNo"; dkim=pass (2048-bit key) header.d=taugh.com header.b="lDOKvefy"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KYNRlUZXFPEe for <ietf-dkim@ietfa.amsl.com>; Sat, 3 Feb 2024 14:10:06 -0800 (PST)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9F53AC14E513 for <ietf-dkim@ietf.org>; Sat, 3 Feb 2024 14:10:06 -0800 (PST)
Received: (qmail 68645 invoked from network); 3 Feb 2024 22:10:04 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type; s=10c2265beb9bc.k2402; bh=Oj7M6aACG28sJves24e2a0B6xX7uK5519/nUy7/wIfY=; b=f/39ACNonVbJ4wiHXPlBpfIAZl3D7fJGoOVOOgRw9UdTT2hnCj0sh3lhhpy7Ubn6L5PfULn2TN7UF8jJDIfLZ7EfcAKvkOkjmiPTYD6UAOo+GQseRAqMYd75CvXR50JIiMUikepF/AcqftGzLaadWvoJL2ydH2t5uIEkCUibMwLvzne+6N4WLI5ejs/zyaAxcEV7DafwE0AuJhM+huGdWdQZTYqnbAx4237KdYTfELCPnRigrljvtkCaBv/pcWy1ZMGjEPvIebbcU0re+C3lINGienQ9yC91Wbo0LIHg2U/nGhslAKLCPUKAXiNHsH/EkuySCvYsocaHw7JolKq7tg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type; s=10c2265beb9bc.k2402; bh=Oj7M6aACG28sJves24e2a0B6xX7uK5519/nUy7/wIfY=; b=lDOKvefyETZbjkqaJ9RgGJ1LWCDyNCfUQ7IiIo/wAobiBipNFx32GgDOhN5uiDfj4/j66EvCMyxcxRYRlciaY2EqkyLUy0rtsMhSnAuumeKhhB+TrI7/ajZ3EMIpyfNxoFHkA7PZJin0iyNbIXV677cChiNfMHFR4feyT6OWqiH4mh6loXMnJvwt00/LtMhvLRhG0LryXZ6/GXcJmWe1IZKqMRtBtOQshMiR6R61xdQGkbiNhosIvdM7s+DwqdniS4272Bj+PANBEZ8iS+Wm4J2yO410K5tItpPSDcatVBk/TvjAme4MRlBSdV0zNFLjWu/o5IfCtOkdnWeRih8GUQ==
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.3 ECDHE-RSA CHACHA20-POLY1305 AEAD) via TCP6; 03 Feb 2024 22:10:04 -0000
Received: by ary.qy (Postfix, from userid 501) id 343ED822BAF4; Sat, 3 Feb 2024 17:10:03 -0500 (EST)
Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id D8E0B822BAD6; Sat, 3 Feb 2024 17:10:03 -0500 (EST)
Date: Sat, 03 Feb 2024 17:10:03 -0500
Message-ID: <ebde3e3d-db06-273a-92c4-f008c0c0fcac@taugh.com>
From: John R Levine <johnl@taugh.com>
To: "Murray S. Kucherawy" <superuser@gmail.com>
Cc: ietf-dkim@ietf.org
X-X-Sender: johnl@ary.qy
In-Reply-To: <CAL0qLwa1Zfn_Cf13djcmVeKbhm49trC+WQneQP7ceDpAFmf7Sg@mail.gmail.com>
References: <20240202043446.AAF26820F0AD@ary.qy> <f9c11d1a-7799-4946-b95e-7c9c682d60ba@dcrocker.net> <CAL0qLwZyXV11ZeULceA5sQbStky4ashJgBVmr_=8vaKZkykSiQ@mail.gmail.com> <7ef08541-e3cf-d356-cba9-85a92a5df9a6@taugh.com> <CAL0qLwa1Zfn_Cf13djcmVeKbhm49trC+WQneQP7ceDpAFmf7Sg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-dkim/QQhhsCbGfdAgzUSvR1j2uJvHGaU>
Subject: Re: [Ietf-dkim] Question about lone CR / LF
X-BeenThere: ietf-dkim@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF DKIM List <ietf-dkim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-dkim>, <mailto:ietf-dkim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-dkim/>
List-Post: <mailto:ietf-dkim@ietf.org>
List-Help: <mailto:ietf-dkim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-dkim>, <mailto:ietf-dkim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Feb 2024 22:10:12 -0000

>> Unix MTAs strip out the CR in CRLF, often on the way in, so by the time
>> opendkim sees the message, the line endings are just LF.
>
> That might be true when it's handing a message to an LDA, but it's not true
> for SMTP ingress filters.  For milter, CRs are preserved in the body, so
> opendkim sees exactly what came in over the wire.
>
> https://pythonhosted.org/pymilter/milter_api/xxfi_body.html

It's probably more of an issue on the way out.  On my system all the DKIM 
and ARC signatures are applied before the message is handed to the MTA, 
and it's all \n line endings.

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