Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tltbO-002e44-Nb for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Feb 2025 17:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tltbN-00EcQL-Gk for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Feb 2025 17:47:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tltbN-00EcNt-1w for pgsql-bugs@lists.postgresql.org; Sat, 22 Feb 2025 17:47:45 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tltbK-000AyH-07 for pgsql-bugs@lists.postgresql.org; Sat, 22 Feb 2025 17:47:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=23Ky+JKoo/1hCWbuthjSlyzq1+RJ4VILeePzZ6Z9tgM=; b=jDfK3 KFiD04ZRnEwMHaY4bQPo/1AwseaXCq3KZAiBpHZ+szrT7rYOw4oxC51RGMp9f59VZIxdz9VdNDxk6 afeSUUK+PpU83PoQ7hwEOaywOEIqi1+WtQ47RpL0KoeQwfDnlCKvIOOhmX1sL8aIMY4gtAhPh88jD QBNewmXafP0aclgfSrojuQl3YjorUBJ+fKn7t8xRpg/JoIIq5S6puxsRvwjoLXe73y0BngNX2+XHB GdP+3crGxxG/m1yK8pnY2uundhtaGTYfruIUYpuYSdmZ5/wrzDlb6no2NeqVPUL9RPhp9jsy3j5gw s5Y2ZgkdxHvBZ7eOPhtFvOQDrLORQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1tltbH-00D1lk-38; Sat, 22 Feb 2025 12:47:39 -0500 Date: Sat, 22 Feb 2025 12:47:39 -0500 From: Bruce Momjian To: Tom Lane Cc: Stefan Kaltenbrunner , Matthias Apitz , pgsql-bugs@lists.postgresql.org, Magnus Hagander Subject: Re: BUG #18822: mailing lists reject mails due to DKIM-signature Message-ID: References: <18822-25d115fe42e642c2@postgresql.org> <7d1cf55f-4228-49d8-8066-cf96deab8ad3@kaltenbrunner.cc> <82011.1740245157@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82011.1740245157@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Feb 22, 2025 at 12:25:57PM -0500, Tom Lane wrote: > Stefan Kaltenbrunner writes: > > On 22.02.25 17:56, Matthias Apitz wrote: > >> Have you read what the RFC 6576 specifies about exactly this case? > > > we are a forwarder that (in the case of a List-* header) NEEDS to modify > > the message so we cannot forward it without breaking. > > Yeah. Regardless of what may be written in the RFC, there are only > these possibilities when the mailing list forwarder receives a > message like this: > > 1. Add the PG list headers, don't touch the DKIM header, forward. > Most modern recipients will reject the result as spam because it > fails DKIM checks. > > 2. Don't add the PG list headers, don't touch the DKIM header, > forward. Many list recipients will discard or at least > misclassify the result for lack of PG list headers. > > 3. Add the PG list headers, discard the DKIM header, forward. > This may well end up marked as spam too, and it's certainly > not complying with the intent of DKIM. > > 4. Reject the message. > > To the extent that including List-* in a DKIM signature has any > real-world use, it is precisely to disavow the message if it's > forwarded by a mailing list. > > The short answer here is that your ISP are fools, or else are > intentionally preventing their users from participating in > mailing lists. I will admit I was shocked to realize I have to modify the default Debian exim4 DKIM header signing to submit to email lists, and I am confused why there is a header signing default on Debian that includes List-* headers. With the help of Magnus, I was able to use this script: exim -bP macros | grep '^_DKIM_SIGN_HEADERS=' | sed --regexp-extended 's/:?\<(Resent-|List-)[^:]*//g' to prevent signing of all Resent and List headers, and use this line in exim4.conf.localmacros: DKIM_SIGN_HEADERS=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:In-Reply-To:References -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.