Re: d2i_PrivateKey_bio() failed

From: Tim Fluhr <timfluhr_at_povertylaw.org>
Date: Wed, 21 Mar 2012 14:09:56 -0500

Thanks for the suggestion. I generated a new key and tried sending a few
messages again but got the same result. I rechecked my TrustedHosts,
SigningTable, and KeyTable and noticed that my KeyTable had text on two
lines. I'm pretty sure that was the problem. I fixed the KeyTable file
and mail is now sending.

Also, this

opendkim[6456]: 63ACA1C2850: DKIM-Signature header added (s=povertylaw, d=
povertylaw.org)

is in the mail.log now.

I think everything is working now.

Thanks for the help!

-tim

On Wed, Mar 21, 2012 at 12:55 PM, Murray S. Kucherawy <msk_at_cloudmark.com>wrote:

> Looks like your private key file is corrupt. The function that failed
> attempts to read it into memory and prepare it for use by other functions,
> but that failed. It did get as far as reading data from the file, however,
> and determined that it was not a key in PEM format. If you followed the
> steps in that blog post, then the keys should indeed be PEM-formatted, so
> something went wrong somewhere in there.
>
> ****
>
> I suggest repeating the key generation and installation step.****
>
> ** **
>
> -MSK****
>
> ** **
>
> *From:* opendkim-users-bounce_at_lists.opendkim.org [mailto:
> opendkim-users-bounce_at_lists.opendkim.org] *On Behalf Of *Tim Fluhr
> *Sent:* Wednesday, March 21, 2012 10:44 AM
> *To:* opendkim-users_at_lists.opendkim.org
> *Subject:* d2i_PrivateKey_bio() failed****
>
> ** **
>
> Hello everyone.****
>
> ** **
>
> I'm having a couple problems getting opendkim configured properly. ****
>
> ** **
>
> I've followed the instructions located at
> http://stevejenkins.com/blog/2010/09/how-to-get-dkim-domainkeys-identified-mail-working-on-centos-5-5-and-postfix-using-opendkim/
> ****
>
> ** **
>
> When I try to send mail from the command line I get the following errors
> in my mail.log****
>
> ** **
>
> Mar 21 10:53:26 hostname opendkim[1933]: 4C22B1C2A3D: dkim_eom(): resource
> unavailable: d2i_PrivateKey_bio() failed****
>
> ** **
>
> Mar 21 10:53:26 hostname postfix/cleanup[1951]: 4C22B1C2A3D:
> milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.0 resource
> unavailable; from=<test_at_hostname.org> to=<test_at_test.org>****
>
> ** **
>
> Mail will not send until I stop the opendkim service. Once the service is
> stopped mail will send, but will not be signed.****
>
> ** **
>
> Thanks for the help.****
>
> ** **
>
> -tim****
>
Received on Wed Mar 21 2012 - 19:10:09 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:38 PST