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

"Murray S. Kucherawy" <superuser@gmail.com> Sat, 03 February 2024 22:08 UTC

Return-Path: <superuser@gmail.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 D4F85C14F6A6 for <ietf-dkim@ietfa.amsl.com>; Sat, 3 Feb 2024 14:08:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=gmail.com
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 SybnvLsmcU8o for <ietf-dkim@ietfa.amsl.com>; Sat, 3 Feb 2024 14:08:35 -0800 (PST)
Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 138C7C14F698 for <ietf-dkim@ietf.org>; Sat, 3 Feb 2024 14:08:35 -0800 (PST)
Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40fb7427044so7569275e9.0 for <ietf-dkim@ietf.org>; Sat, 03 Feb 2024 14:08:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706998113; x=1707602913; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZcJnIJuJj+vLn1A+1EIGXDgVKc5DAC0t4n3Ft84/sxE=; b=bot+aC6VdRF1RDXJBXH89V1gyqvDck1KOLaDtC6N+4UcBad8YJGYJTPbjaUaWyoCna nDIGNRFBP+eJMWo50ZFwXjkiwYyoRTCNjZbEgRiQ/pkmAgR7D+dC7IZTUyj0NaGeNeQL 96O8Oep+42graoKeX2FKmA3ZLKuG5Bq5mkl8+jgy8Ks0pprCI2P5DdUZFvm1O128cqqp vJmbmn8KtwdyBluGveSfBjJoY820iCXq2papBfxMC7mnHa2wvP5J1yLHpQ3QOsxDdmpe xr3iXsozRmicixkHq3roo61u2XkONPdVY3pkCEkK9zoH0ywfD/91dC/D0KnKGn+8zJnb k4GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706998113; x=1707602913; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZcJnIJuJj+vLn1A+1EIGXDgVKc5DAC0t4n3Ft84/sxE=; b=fPc5AF9AIKDbgIf3qgapsd9GWsiSADB141UdHYa60isA/sOkpUguhNVcIR6h8Xx/ZX 6rnwLgdGqbjaLxLUFDzRtbi7P/yhOFwTa38tA8BtxbuRyvDZX6FwQwjO7i4s6r7ZMem2 hnitZ9mXF7qAMp04SgbSAzK8SYOOm6fp1KYAZoLrTcEZHqOuI3oy2e4fXs1QVw/J9FsO 2cs+WOhcKOdxS+DU0vfPr9nNG40mI8pyfyskUpR8DsM/hdm04enNEg3HbZUiYDPevnVg NYb8BQH67LWUeUgY6fJP+PoQEXcATWZ3Ct+3M3Z1vG73oaKZ8ycpCGe6ZB/Tv7ps0gRR KdWw==
X-Gm-Message-State: AOJu0YwWkZQuEsFx5aUcJ23cBU14tMw5YD3SnW9cf11lww5kgB3tKk4l 7aT0ZlCi6Y4UJg4ZbBz9Oxpg5x9iU0uvhgIVe/cix+GchK7aKbePa10Dv9L9G8ZcHUX/q9ZGtak MRF5TQrxbUftuYU2MhAGSbbcXhfWOZFiSMH0=
X-Google-Smtp-Source: AGHT+IHsMhBOZW9RPbvJp9eGDbLVMSMikhY3cFMroRUBhYaxBAQG8g5QjJrSRTqy+25EC33fXPjPou9uEo5vIN2vDCU=
X-Received: by 2002:a05:6000:136d:b0:33b:18c7:5e64 with SMTP id q13-20020a056000136d00b0033b18c75e64mr5067190wrz.3.1706998112464; Sat, 03 Feb 2024 14:08:32 -0800 (PST)
MIME-Version: 1.0
References: <20240202043446.AAF26820F0AD@ary.qy> <f9c11d1a-7799-4946-b95e-7c9c682d60ba@dcrocker.net> <CAL0qLwZyXV11ZeULceA5sQbStky4ashJgBVmr_=8vaKZkykSiQ@mail.gmail.com> <7ef08541-e3cf-d356-cba9-85a92a5df9a6@taugh.com>
In-Reply-To: <7ef08541-e3cf-d356-cba9-85a92a5df9a6@taugh.com>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Sat, 03 Feb 2024 14:08:19 -0800
Message-ID: <CAL0qLwa1Zfn_Cf13djcmVeKbhm49trC+WQneQP7ceDpAFmf7Sg@mail.gmail.com>
To: John R Levine <johnl@taugh.com>
Cc: ietf-dkim@ietf.org
Content-Type: multipart/alternative; boundary="00000000000020330906108178a6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-dkim/XJuz7fy8nVSUj_BsCwXwZsHumig>
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:08:38 -0000

On Sat, Feb 3, 2024 at 1:54 PM John R Levine <johnl@taugh.com> wrote:

>
> > It also optionally does LF to CRLF translation.  I'm fairly certain this
> is
> > to accommodate local/human SMTP injections since humans can't be expected
> > to type CRLFs when entering manual tests from a shell. ...
>
> 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

-MSK