From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7645 invoked from network); 3 Nov 2023 13:05:06 -0000 Received: from mx2.math.uh.edu (129.7.128.33) by inbox.vuxu.org with ESMTPUTF8; 3 Nov 2023 13:05:06 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1qytr5-00BsIc-2h for ml@inbox.vuxu.org; Fri, 03 Nov 2023 08:05:00 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96.2) (envelope-from ) id 1qytr5-000gFL-15 for ml@inbox.vuxu.org; Fri, 03 Nov 2023 08:04:55 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96.2) (envelope-from ) id 1qytGY-000g5b-0v for ding@lists.math.uh.edu; Fri, 03 Nov 2023 07:27:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1qytGS-00Bs3T-26 for ding@lists.math.uh.edu; Fri, 03 Nov 2023 07:27:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Gy90UXQ1fhz5kTSsQF2/bnPP+EVn0MAU82hM25exiLc=; b=r/ORiLkm20KPj42fnZJRNeeYSt nXZEgX6bQFyvcHJoIFbAXSME69LnOpFlFyBAbgXz9++c3PQUCvs/eOmC1vFIiUjQFInk244wvpo5I A47dAshauKOLkoeF3+OEA3vGbf9tpcdeKwHIM4OkNHbLxyTneJphXdRMXAK96AnDbcVs=; Received: from s1.lexort.com ([71.19.148.97]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qytGI-0004bq-TS for ding@gnus.org; Fri, 03 Nov 2023 13:26:59 +0100 Received: by s1.lexort.com (Postfix, from userid 10853) id BF1504106DA; Fri, 3 Nov 2023 08:26:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1699014411; bh=ONNibzBYx1JJ6CWzV4OJBJp0Fjm0cyf+K5dG59s3wl0=; h=From:To:Subject:Date; b=Cmp5him4rdiu8NH+LaAuNDxwyLOJZGNyFCLWTdVZbiIbRSbAO8KmxDN1g/4kPiPZU Rvx0/Bu0jhqSX1IchfJT85RVPVpbLwbh3WdMhg+uWQmxHxmLQR37QcjckUam7TKOOl IWREOfa6o2iDE7iwD+qj7mFqSWsIktXxQU93in7o= From: Greg Troxel To: ding@gnus.org Subject: resending bounces: DKIM and Message-ID: Date: Fri, 03 Nov 2023 08:23:39 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (berkeley-unix) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1699014219; bh=eeB1OL0c0u2+SOWzRtNCVlH+oCKEc2vYsqRGp4ZsUk0=; h=From:To:Subject:Date; b=TtTS6faBNmfjVMi3VmqAOjsnMjefzbuHrU2yJFTEYuaHMMDQr9lY8j2uAKQHn1bYR g3VmgRP/gkkm0cYU5cGj/Oazk+ooWC+qxghvnXo+0/iDxNdhfgSVQi0k79VSvNlbLP S/l11R1Yf2mk2Ga02Nx/+K3AVxATm17MKh8AcLHc= OpenPGP: id=098ED60E MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk I found a behavior problem that I think is a bug in both gnus and opendkim. Headers that are supposed to be added by the originating MTA are not removed, so the resent message has odd content: duplicate DKIM header, and the same Message-ID: My system in NetBSD 9 amd64 with emacs 28.2, but I don't think that's particularly important. Reproduction Recipe: - send a message to a mailing list that you are not subscribed to, so that it will bounce, and CC: an actual person - subscribe to the list and confirm - In the summary at the bounce, S D b (gnus-summary-resend-bounced-mail) - In the resulting message buffer, C-c C-c (realizing or not realizing that the actual person will get a second copy) This seems to me to be a normal sequence of events, and I'm here because it actually happened. It was a discussion of DKIM/DMARC configuration for mailman, so the person in the CC: got two copies and actually noticed that there were two DKIM headers from my domain. The problem is that the message that is sent has two DKIM headers. This is because the one that was added by the MTA on the way to the mailinglist is present because it was in the bounce, and then opendkim added a new one, because it just adds. But also, the Message-ID: was generated for the first message, and the that is reused. That seems also like a bug. The proposal is to fix this by: * in gnus - adding a list of headers which should be removed from bounce messages when doing gnus-summary-resend-bounced-mail - set the list to Message-ID and DKIM-Signature to start with * in opendkim - adjust to remove DKIM-Signature from matching d= See https://sourceforge.net/p/opendkim/bugs/283/ To make this report properly lispy, I have intentionally typod the list by sending to ding2@ instead, and will include the headers from the bounce resend buffer in the body. Greg (end of first message) Content of headers in *unsent-bounce* after S D b: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1699014219; bh=eeB1OL0c0u2+SOWzRtNCVlH+oCKEc2vYsqRGp4ZsUk0=; h=From:To:Subject:Date; b=TtTS6faBNmfjVMi3VmqAOjsnMjefzbuHrU2yJFTEYuaHMMDQr9lY8j2uAKQHn1bYR g3VmgRP/gkkm0cYU5cGj/Oazk+ooWC+qxghvnXo+0/iDxNdhfgSVQi0k79VSvNlbLP S/l11R1Yf2mk2Ga02Nx/+K3AVxATm17MKh8AcLHc= From: Greg Troxel To: ding2@gnus.org Subject: resending bounces: DKIM and Message-ID: OpenPGP: id=098ED60E Date: Fri, 03 Nov 2023 08:23:39 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (berkeley-unix) Gcc: nnfolder+archive:sent.2023-11 showing both DKIM-Signature and Message-ID. Because I have changed the To: the original signature will be invalid. I have edited the To: and am about to type C-c C-c. (end of second message)