[exim-dev] [Bug 2394] DKIM docs reference obsolete RFC

Top Page

Reply to this message
Author: admin
To: exim-dev
Subject: [exim-dev] [Bug 2394] DKIM docs reference obsolete RFC

--- Comment #5 from Andreas Metzler <eximusers@???> ---
I have started looking at DKIM recently and stumbled over this report.

The current default value seems to be less than optimal, dkim_sign_headers
defaults to _DKIM_SIGN_HEADERS, i.e. it reads


Notably exim is not using either = or + modifiers but signs the headers no
matter whether they are present or not, therefore it is oversigning the headers
not present and /signing/ without oversigning the headers that are present.

So this offers protection
* against modification of present headers
* addition of the headers if they were not present
* but does not protect against adding e.g. another From: or Subject header.

I think this choice does not make a lot of sense, for any given header I would
want to choose either of these alternatives:
a) do not sign
b) if present sign (with oversign to prevent addition of duplicate with
different content), allow addition otherwise.
c) always sign no matter whether present or not (with oversign to prevent
addition of header or addition of a duplicate of the present header).

e.g. I would put From: in the (b)-basket and List-Subscribe into (c).

Sadly RFC 6376 does not offer a lot of hard guidance there, it essentially says
"think about it carefully, and always sign From:." However I am convinced that
most people currently need to override exim's preset for dkim_sign_headers and
would like to improve it. Please tell me if I am completely off, or if there is
some hidden, commonly accepted DKIM-best-practice document I have missed.

cu Andreas

You are receiving this mail because:
You are on the CC list for the bug.