{"id":630,"date":"2014-04-10T14:40:56","date_gmt":"2014-04-10T12:40:56","guid":{"rendered":"http:\/\/bergs.biz\/blog\/?p=630"},"modified":"2014-05-04T13:53:08","modified_gmt":"2014-05-04T11:53:08","slug":"outlook-com-breaks-dkim-signatures","status":"publish","type":"post","link":"https:\/\/bergs.biz\/blog\/2014\/04\/10\/outlook-com-breaks-dkim-signatures\/","title":{"rendered":"Outlook.com breaks DKIM signatures"},"content":{"rendered":"<p>I&#8217;m currently implementing DKIM support for my Exim mail server, and due to this I&#8217;m sending a lot of test messages to all major freemail providers in Europe and the USA.<\/p>\n<p>I noticed that Outlook.com breaks DKIM signatures since they modify one header as follows:<\/p>\n<p>The original header I sent is<\/p>\n<pre>Content-Type: text\/plain; charset=ISO-8859-1; format=flowed<\/pre>\n<p>while the header which I see when I fetch the received message with IMAP is the following:<\/p>\n<pre>Content-Type: text\/plain; charset=\"ISO-8859-1\"; format=flowed<\/pre>\n<p>Noe the extra &#8220;double quotes&#8221; around the charset which are <em>not<\/em> transparent to &#8220;relaxed&#8221; Header Canonicalization. This causes Thunderbird&#8217;s &#8220;DKIM Verifier&#8221; extension to fail on this message.<\/p>\n<p>What&#8217;s strange is that Outlook itself succeeds internally to verify the DKIM signature, so the modification to said header probably occurs <em>after<\/em> checking the original header. See below for what the header of the received message says about authentication:<\/p>\n<pre>Authentication-Results: ... dkim=pass (identity alignment result is pass and alignment mode is strict) header.d=example.org;<\/pre>\n<p>To solve this small issue I modified Exim&#8217;s list of headers to be signed as follows. Original set is<\/p>\n<pre>Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID<\/pre>\n<p>while I now only sign the following (which I consider to be sufficient):<\/p>\n<pre>Subject:To:From:Date:Message-ID<\/pre>\n<p>Let me know if you have any comments or suggestions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Outlook.com breaks existing DKIM signatures by modifying a protected header value.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[119],"class_list":["post-630","post","type-post","status-publish","format-standard","hentry","category-security-computers","tag-dkim"],"_links":{"self":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":2,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/630\/revisions\/659"}],"wp:attachment":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}