Hello John, > If you're not sending SMTPUTF8 mail, the DKIM signature headers > should be ASCII with no encoding needed. But if you are ending > SMTPUTF8 mail, you can put UTF-8 directly in the header and it > doesn't need any futher encoding either.
Yeah, even more odd, the actual data did not contain any UTF-8 anyway. Meta now also fixed this. > Can you give an example of the signature headers that caused a > problem? They just sound wrong. See attached. dkimpy/dkimverify failed on the original mail with: dkim.MessageFormatError: b'=?UTF-8?Q?v=3D1' However, when fixing the header manually, the mail correctly validates: % cat ascii.mbox|dkimverify signature ok rspamc is also able to verify the original mail: # cat 36751.mbox| rspamc Results for file: stdin (2.36 seconds) [Metric: default] Action: no action Spam: false Score: 1.10 / 15.00 ... Symbol: DKIM_TRACE (0.00)[meta.com:+] Symbol: R_DKIM_ALLOW (-0.20)[meta.com:s=s2048-2021-q4] ... My understanding, though, is that encoding _should_ be permissible here, as it would be needed, e.g., when receiving a message from a server with SMTPUTF8 which then must be forwarded via a server that does not support it. Would be nice to know, though, as that influences how I should score such headers being there (error vs. warning) for the test-website. With best regards, Tobias -- Dr.-Ing. Tobias Fiebig T +31 616 80 98 99 M tob...@fiebig.nl
--- ascii.mbox 2024-06-04 18:52:56.213538681 +0200 +++ 36751.mbox 2024-06-03 23:44:21.342406024 +0200 @@ -13,7 +13,16 @@ Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 453LCtYI010400; Mon, 3 Jun 2024 14:24:06 -0700 -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=content-type:date:from:in-reply-to:message-id:mime-version:references:subject:to; s=s2048-2021-q4; bh=+u8G0t/3N3vkyvfnVsE3LmLsnsfDjQZbrcpl03e4/lw=; b=b/+Or8DXaJuDThOsxHzXoSEPgs595iO+fF50NpcmYH0/FyZ7YbDAASqsssKGp3A2P0+H P9Ed7gY8QrH4kb5PydaPnO7aHOd/ggqaDszuxXqzTpwN6WYNpEsjG0Rci4J+CaMClpR4 MmDT9lkvErV1LzKBr2CeVOmjlcoY9DDXV58W7LF8ChcBolXb5jphrn/kjsT3wUNAADjC qXuiaK8XjckdThchqrAhaaqmjTrym8iFMcwmYcnxtlxdMc0vDAcj1L9OwaTJF2orIBEu gqyoY4Kp5wmXZMEMKbb4n8AphX4fbWJBSENovqYfaBAzFJZUghkfrlW+4pN7qYxf7i6d 5w== +DKIM-Signature: =?UTF-8?Q?v=3D1;_a=3Drsa-sha256;_c=3Drelaxed/relaxed;_d=3Dmeta.com;_h=3Dc?= + =?UTF-8?Q?ontent-type:date:from:in-reply-to:message-id:mime-version:refer?= + =?UTF-8?Q?ences:subject:to;_s=3Ds2048-2021-q4;_bh=3D+u8G0t/3N3vkyvfnVsE3L?= + =?UTF-8?Q?mLsnsfDjQZbrcpl03e4/lw=3D;_b=3Db/+Or8DXaJuDThOsxHzXoSEPgs595iO+?= + =?UTF-8?Q?fF50NpcmYH0/FyZ7YbDAASqsssKGp3A2P0+H_P9Ed7gY8QrH4kb5PydaPnO7aHO?= + =?UTF-8?Q?d/ggqaDszuxXqzTpwN6WYNpEsjG0Rci4J+CaMClpR4_MmDT9lkvErV1LzKBr2Ce?= + =?UTF-8?Q?VOmjlcoY9DDXV58W7LF8ChcBolXb5jphrn/kjsT3wUNAADjC_qXuiaK8XjckdTh?= + =?UTF-8?Q?chqrAhaaqmjTrym8iFMcwmYcnxtlxdMc0vDAcj1L9OwaTJF2orIBEu_gqyoY4Kp?= + =?UTF-8?Q?5wmXZMEMKbb4n8AphX4fbWJBSENovqYfaBAzFJZUghkfrlW+4pN7qYxf7i6d_5w?= + =?UTF-8?Q?=3D=3D_?= Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3yhg8jtq5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
DKIM-Signature: =?UTF-8?Q?v=3D1;_a=3Drsa-sha256;_c=3Drelaxed/relaxed;_d=3Dmeta.com;_h=3Dc?= =?UTF-8?Q?ontent-type:date:from:in-reply-to:message-id:mime-version:refer?= =?UTF-8?Q?ences:subject:to;_s=3Ds2048-2021-q4;_bh=3D+u8G0t/3N3vkyvfnVsE3L?= =?UTF-8?Q?mLsnsfDjQZbrcpl03e4/lw=3D;_b=3Db/+Or8DXaJuDThOsxHzXoSEPgs595iO+?= =?UTF-8?Q?fF50NpcmYH0/FyZ7YbDAASqsssKGp3A2P0+H_P9Ed7gY8QrH4kb5PydaPnO7aHO?= =?UTF-8?Q?d/ggqaDszuxXqzTpwN6WYNpEsjG0Rci4J+CaMClpR4_MmDT9lkvErV1LzKBr2Ce?= =?UTF-8?Q?VOmjlcoY9DDXV58W7LF8ChcBolXb5jphrn/kjsT3wUNAADjC_qXuiaK8XjckdTh?= =?UTF-8?Q?chqrAhaaqmjTrym8iFMcwmYcnxtlxdMc0vDAcj1L9OwaTJF2orIBEu_gqyoY4Kp?= =?UTF-8?Q?5wmXZMEMKbb4n8AphX4fbWJBSENovqYfaBAzFJZUghkfrlW+4pN7qYxf7i6d_5w?= =?UTF-8?Q?=3D=3D_?=
_______________________________________________ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop