<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using DKIM in Exim</title>
	<atom:link href="http://mikepultz.com/2010/02/using-dkim-in-exim/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikepultz.com/2010/02/using-dkim-in-exim/</link>
	<description>personal and professional blog of mike pultz, technology specialist and serial entrepreneur.</description>
	<lastBuildDate>Fri, 11 May 2012 19:07:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mike</title>
		<link>http://mikepultz.com/2010/02/using-dkim-in-exim/comment-page-1/#comment-2468</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 03 May 2012 21:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=384#comment-2468</guid>
		<description>Hey Jon,

The error: &quot;DKIM: signing failed (RC -101)&quot;

is the error code PDKIM_ERR_RSA_PRIVKEY (from src/pdkim/pdkim.h)

/* Function success / error codes */
#define PDKIM_OK                      0
#define PDKIM_FAIL                   -1
#define PDKIM_ERR_OOM              -100
#define PDKIM_ERR_RSA_PRIVKEY      -101
#define PDKIM_ERR_RSA_SIGNING      -102
#define PDKIM_ERR_LONG_LINE        -103
#define PDKIM_ERR_BUFFER_TOO_SMALL -104

and is only returned in one place - in src/pdkim/pdkim.c

      /* Perform private key operation */
      if (rsa_parse_key(&amp;rsa, (unsigned char *)sig-&gt;rsa_privkey,
                        strlen(sig-&gt;rsa_privkey), NULL, 0) != 0) {
        return PDKIM_ERR_RSA_PRIVKEY;
      }

So it looks like there is a problem parsing the RSA key that you generated for Exim.

This could be because the key generation failed, or because exim doesn&#039;t have access to the file (file permissions).

I would start by trying to re-generate your certificates.

Mike</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>The error: &#8220;DKIM: signing failed (RC -101)&#8221;</p>
<p>is the error code PDKIM_ERR_RSA_PRIVKEY (from src/pdkim/pdkim.h)</p>
<p>/* Function success / error codes */<br />
#define PDKIM_OK                      0<br />
#define PDKIM_FAIL                   -1<br />
#define PDKIM_ERR_OOM              -100<br />
#define PDKIM_ERR_RSA_PRIVKEY      -101<br />
#define PDKIM_ERR_RSA_SIGNING      -102<br />
#define PDKIM_ERR_LONG_LINE        -103<br />
#define PDKIM_ERR_BUFFER_TOO_SMALL -104</p>
<p>and is only returned in one place &#8211; in src/pdkim/pdkim.c</p>
<p>      /* Perform private key operation */<br />
      if (rsa_parse_key(&#038;rsa, (unsigned char *)sig->rsa_privkey,<br />
                        strlen(sig->rsa_privkey), NULL, 0) != 0) {<br />
        return PDKIM_ERR_RSA_PRIVKEY;<br />
      }</p>
<p>So it looks like there is a problem parsing the RSA key that you generated for Exim.</p>
<p>This could be because the key generation failed, or because exim doesn&#8217;t have access to the file (file permissions).</p>
<p>I would start by trying to re-generate your certificates.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://mikepultz.com/2010/02/using-dkim-in-exim/comment-page-1/#comment-2458</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 01 May 2012 17:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=384#comment-2458</guid>
		<description>I have been banging my head on this. Here is what I get from running the following command:
/usr/sbin/exim -d -r &quot;sysadmin@fromdomain.com&quot; -odf jon@mydomain.com

PDKIM &gt;&gt; Hashed body data, canonicalized &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
d{CR}{LF}PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt; Hashed header data, canonicalized, in sequence &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
Date:{SP}Tue,{SP}01{SP}May{SP}2012{SP}12:55:11{SP}-0400{CR}{LF}
From:{SP}sysadmin@fromdomain.com{CR}{LF}
Message-Id:{SP}{CR}{LF}
PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt; Signed DKIM-Signature header, canonicalized &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
DKIM-Signature:{SP}v=1;{SP}a=rsa-sha256;{SP}q=dns/txt;{SP}c=simple/simple;{SP}d=fromdomain.com;{SP}s=clips4sale.key._domainkey.fromdomain.com;{CR}{LF}{TB}h=Date:From:Message-Id;{SP}bh=b5BH63Qu/J1JXFMePN0RyHtCC1kT3uTiiTxs8JU5XRY=;{CR}{LF}{TB}b=;
PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
PDKIM [fromdomain.com] hh computed: 15525e51535f45caea0668d70b115c21e89beeada4f652aae48fb7beca8c9788
LOG: MAIN PANIC
  DKIM: signing failed (RC -101)

Any help would be greatly appreciated. Thanks Mike.</description>
		<content:encoded><![CDATA[<p>I have been banging my head on this. Here is what I get from running the following command:<br />
/usr/sbin/exim -d -r &#8220;sysadmin@fromdomain.com&#8221; -odf <a href="mailto:jon@mydomain.com">jon@mydomain.com</a></p>
<p>PDKIM &gt;&gt; Hashed body data, canonicalized &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
d{CR}{LF}PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt; Hashed header data, canonicalized, in sequence &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
Date:{SP}Tue,{SP}01{SP}May{SP}2012{SP}12:55:11{SP}-0400{CR}{LF}<br />
From:{SP}sysadmin@fromdomain.com{CR}{LF}<br />
Message-Id:{SP}{CR}{LF}<br />
PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt; Signed DKIM-Signature header, canonicalized &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
DKIM-Signature:{SP}v=1;{SP}a=rsa-sha256;{SP}q=dns/txt;{SP}c=simple/simple;{SP}d=fromdomain.com;{SP}s=clips4sale.key._domainkey.fromdomain.com;{CR}{LF}{TB}h=Date:From:Message-Id;{SP}bh=b5BH63Qu/J1JXFMePN0RyHtCC1kT3uTiiTxs8JU5XRY=;{CR}{LF}{TB}b=;<br />
PDKIM &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br />
PDKIM [fromdomain.com] hh computed: 15525e51535f45caea0668d70b115c21e89beeada4f652aae48fb7beca8c9788<br />
LOG: MAIN PANIC<br />
  DKIM: signing failed (RC -101)</p>
<p>Any help would be greatly appreciated. Thanks Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://mikepultz.com/2010/02/using-dkim-in-exim/comment-page-1/#comment-2457</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 30 Apr 2012 19:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=384#comment-2457</guid>
		<description>I don&#039;t think it should show up under Authenticators; DKIM isn&#039;t an authentication method.

Mike</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think it should show up under Authenticators; DKIM isn&#8217;t an authentication method.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://mikepultz.com/2010/02/using-dkim-in-exim/comment-page-1/#comment-2456</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 30 Apr 2012 18:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=384#comment-2456</guid>
		<description>I do see it under the Support sections:


Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL Content_Scanning DKIM Old_Demime Experimental_SPF Experimental_SRS

Still getting signing failures
2012-04-30 12:46:08 1SOtjf-0007WF-EY DKIM: signing failed (RC -101)</description>
		<content:encoded><![CDATA[<p>I do see it under the Support sections:</p>
<p>Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL Content_Scanning DKIM Old_Demime Experimental_SPF Experimental_SRS</p>
<p>Still getting signing failures<br />
2012-04-30 12:46:08 1SOtjf-0007WF-EY DKIM: signing failed (RC -101)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://mikepultz.com/2010/02/using-dkim-in-exim/comment-page-1/#comment-2455</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 30 Apr 2012 18:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=384#comment-2455</guid>
		<description>When running exim in debug mode, should you see the reference to dkim under the Authenticators: near the top?

Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa</description>
		<content:encoded><![CDATA[<p>When running exim in debug mode, should you see the reference to dkim under the Authenticators: near the top?</p>
<p>Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa</p>
]]></content:encoded>
	</item>
</channel>
</rss>

