NetBSD Problem Report #55171

From  Mon Apr 13 18:24:14 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 7D40F1A9219
	for <>; Mon, 13 Apr 2020 18:24:14 +0000 (UTC)
Message-Id: <>
Date: Mon, 13 Apr 2020 18:24:12 +0000 (UTC)
Subject: Canonicalization issue in OpenDKIM 2.10.3
X-Send-Pr-Version: www-1.0

>Number:         55171
>Category:       pkg
>Synopsis:       Canonicalization issue in OpenDKIM 2.10.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pettai
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 13 18:25:00 +0000 2020
>Last-Modified:  Fri Oct 09 03:30:01 +0000 2020
>Originator:     Russell Hansen
>Release:        trunk
SunOS mail 5.11 joyent_20191205T020950Z i86pc i386 i86pc illumos
E-mail messages from my work to my home server have been failing

dkim=fail reason="signature verification failed"

# opendkim -t work_to_home.eml
opendkim: work_to_home.eml: verification (s=<work_selector>, d=<work_domain>, 1024-bit key) succeeded

# opendkim-testmsg -K < work_to_home.eml
opendkim-testmsg: dkim_eom(): Bad signature

# cat work_to_home.eml

# cat dkim.opendkim-testmsg.Hwauuw
message-id: <>

I don't know if the web for will preserve the formatting but there is a new line for the Message-ID field in the e-mail file and the space after the message-id: in the temp file from opendkim-testmsg -K.
Send an e-mail with the message-id (or any header signed by DKIM) containing \r\n


Attached ticket226.patch



Responsible-Changed-From-To: pkg-manager->pettai
Responsible-Changed-When: Fri, 17 Apr 2020 10:34:04 +0000
Over to maintainer.

From: Richard Hansen <>
Subject: Re: pkg/55171
Date: Thu, 8 Oct 2020 23:26:32 -0400

 This bug was fixed upstream ( over 5 years ago, but upstream has not made a stable release since then.

 Debian has been using various 2.11.0 prerelease versions since Stretch (June 2017), so it should be safe to bump this package to 2.11.0-Beta2 (the latest tag).

 See for a pkgsrc patch.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.