Your message dated Sun, 21 Sep 2025 12:19:34 +0000
with message-id <[email protected]>
and subject line Bug#939808: fixed in exim4 4.99~RC2-1
has caused the Debian Bug report #939808,
regarding exim4: Very problematic default DKIM_SIGN_HEADERS
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
939808: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939808
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: exim4
Source-Version: 4.92.2-2
Severity: important
Tags: patch
Hi!
The default DKIM_SIGN_HEADERS macro contains many headers that make
sending mails to mailing lists or (re)sending mails on someone's
behalf pretty much infeasible. This has big impact on systems with
strict DKIM and DMARC policies.
There are several of the listed fields that are intended to be set by the
system resending a mail, be that a mailing list or a third-party. If these
fields are listed in the default set it means any mail going through those
systems will contain a signature for an empty header, which will then be
filled and fail signature validatation. Moreover the RFC4871 and RFC6376
in their §5.4 section mentions that signing missing fields should be done
carefully.
Mark Sender and all Resent-* and List-* fields to only be signed if
present.
Add also duplicate entries for the From and Subject fields, to reject
appended fields.
There's a related write up at
<https://begriffs.com/posts/2018-09-18-dmarc-mailing-list.html>.
I'm attaching a patch that should fix this.
Thanks,
Guillem
Description: Fix default DKIM_SIGN_HEADERS macro.
There are several of the listed fields that are intended to be set by the
system resending a mail, be that a mailing list or a third-party. If these
fields are listed in the default set it means any mail going through those
systems will contain a signature for an empty header, which will then be
filled and fail signature validate. Moreover the RFC4871 and RFC6376 in
their §5.4 section mentions that signing missing fields should be done
carefully.
.
Add also duplicate entries for the From and Subject fields, to reject
appended fields.
Author: Guillem Jover <[email protected]>
Last-Update: 2019-09-08
---
src/pdkim/pdkim.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/src/pdkim/pdkim.h
+++ b/src/pdkim/pdkim.h
@@ -26,14 +26,14 @@
#include "../blob.h"
#include "../hash.h"
-#define PDKIM_DEFAULT_SIGN_HEADERS "From:Sender:Reply-To:Subject:Date:"\
- "Message-ID:To:Cc:MIME-Version:Content-Type:"\
- "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"
+#define PDKIM_DEFAULT_SIGN_HEADERS \
+ "From:From:=Sender:Reply-To:Subject:Subject:Date:To:Cc:"\
+ "Message-ID:In-Reply-To:References:MIME-Version:"\
+ "Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:"\
+ "=Resent-Date:=Resent-From:=Resent-Sender:=Resent-To:=Resent-Cc:"\
+ "=Resent-Message-ID:"\
+ "=List-Id:=List-Help:=List-Unsubscribe:=List-Subscribe:=List-Post:"\
+ "=List-Owner:=List-Archive"
/* -------------------------------------------------------------------------- */
/* Length of the preallocated buffer for the "answer" from the dns/txt
--- End Message ---
--- Begin Message ---
Source: exim4
Source-Version: 4.99~RC2-1
Done: Andreas Metzler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
exim4, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <[email protected]> (supplier of updated exim4 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 21 Sep 2025 14:01:35 +0200
Source: exim4
Architecture: source
Version: 4.99~RC2-1
Distribution: experimental
Urgency: medium
Maintainer: Exim4 Maintainers <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Closes: 939808 1115604
Changes:
exim4 (4.99~RC2-1) experimental; urgency=medium
.
* Fold overlong lines when sending paniclog excerpts by mail. (Thanks,
Célestin Matte) Closes: #1115604
* New upstream version.
* Do not DKIM-oversign empty Resent-* and List-* headers.
This is minimal change to avoid bad settings, an optimal setting might
look different. (Closes: #939808)
Checksums-Sha1:
e5ecc9a08df39a4ab6051efd55e25d83d978eb22 2917 exim4_4.99~RC2-1.dsc
7fdd5c7170df8321e26b50e4261477a5c892225b 1932268 exim4_4.99~RC2.orig.tar.xz
43e1e93cf5bb437dd69c4e63140b858077d65c24 508 exim4_4.99~RC2.orig.tar.xz.asc
50c351e0a47535f06116406e5601c402c4e2e9d7 479140 exim4_4.99~RC2-1.debian.tar.xz
Checksums-Sha256:
37a1741bdc6b88fede751d046c74c1dbe92c5d18c5d71a7fd1dbee081bf0fc89 2917
exim4_4.99~RC2-1.dsc
45e3644040e2d252f609c4b13bcb2f636571fa70985d92b26d91cf64a91cd029 1932268
exim4_4.99~RC2.orig.tar.xz
9ad6ca83c424c018cf135a3403c9069eab6703738f126a346ce855fdba6550bd 508
exim4_4.99~RC2.orig.tar.xz.asc
37647f9ada6c9bff425632c0e4314428a048be05a98d991465a272d83910579e 479140
exim4_4.99~RC2-1.debian.tar.xz
Files:
766a30f00cc43fba63ae24d3f8783239 2917 mail standard exim4_4.99~RC2-1.dsc
2d5684751d32e717cd56b95bd6fffe60 1932268 mail standard
exim4_4.99~RC2.orig.tar.xz
00780c7af0f4559efacda3dc504656fc 508 mail standard
exim4_4.99~RC2.orig.tar.xz.asc
9ad644a3682a8b088248c58da4776c2a 479140 mail standard
exim4_4.99~RC2-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmjP6hMACgkQpU8BhUOC
FITn1A//SdXq8EOa8CZwmKIgWcBYX15BmPaiv3ZRyVIozFSPjnTXzDjUfRgU8tws
kGVn0nDjmTXMmkWifOG/QpDVSNUsdiFXGMH4+hN21ytGKOzcxSJGfaUhK40I5EUX
/7urzwRv2ALoqOsuLcQnuEf0TF/EQ23EItj4vdLNgL+ch3pmzgDPhdXCL0PEGe3o
KYU2OnN5Auybxb4oqiL7w2hXUpu4U4UwWaQ6l36NWoep4jytaODUrVkuliQpu2L/
Bwz1VmeiTnMyTfAV+yMsFbuDIRtt0cFEyZwGJaVhpiKyO1e4D1PteCr98eqKi5KW
wmQ77+M1DLWnZJBINVE9ZTAsoe+PVcjeLpjJxfcL6S/pUYhyZpcrFW7ejxq7ikMV
+WMn3a6LL6A2iquYP3uW17T4X1YctT/h47kqF5irXOUJfatPGHgj+p4Z5ciHUi4C
zeK4XKlE3byhdcdJZ47XueWTlfWDzGHUXuzDx5WEg9ZYEQFulRZvkrrrq/Nos8YG
W0a3Ew+p54oHN4f1fp/ZEFxvhh/1Ml4pvv1VtuUvUea5GlJcKu/9gNUe7nfnq3W4
xhzpwO3WYW+yPwifAIxfFR36gi6SZcRzCyzdPho+A7ammjV1IhwWxYzBUItcwafx
ZkE58DqRXW0nkH0umDK3deiXQTSXED+GhYrNhMoy8XJqNZh+L/E=
=N9HX
-----END PGP SIGNATURE-----
pgp9bfhMQBXYw.pgp
Description: PGP signature
--- End Message ---