#5 opendkim-genkey creates a TXT entry with a syntax error

closed
nobody
libopendkim (2)
5
2012-09-11
2012-04-03
Anonymous
No

OpenDKIM has been compile from source on Fedora 7 using OpenSSL 1.0.0d complied from source and every key which is generated results in the error below when using opendkim-testkey to test the resulting key. This error appear on both OpenDKIM 2.4.3 and 2.5.1.

Error:
opendkim-testkey: syntax error in key data (ASCII 0x3d at offset 8)

The error is do to the TXT file which is created for the DNS records leaving out part of the value for the text record, for cloud9living.com the public record which was generated looks like:
v=DKIM1;=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsk9yRJ8tqvxIn658c8qtz1lGzpE83Ekrw6Pf8avex/JI0ffEcXUd4szyS92pVkPwkujYHt48Fiwf9tbxXruQgpJ6hSQmB7kE+1q9UhWi2lqPGOQg9vFdZfMGNdFTooIFCXOY++xuFNyXFJXY9BR84pz4rI$

When instead it should be:
v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsk9yRJ8tqvxIn658c8qtz1lGzpE83Ekrw6Pf8avex/JI0ffEcXUd4szyS92pVkPwkujYHt48Fiwf9tbxXruQgpJ6hSQmB7kE+1q9UhWi2lqPGOQg9vFdZfMGNdFTooIFCXOY++xuFNyXFJXY9BR84pz4rI$

You will notice v=DKIM1;=rsa; is incomplete and generates an error. If the error message was more clear that the error was coming from the DNS record it would not have taken 3 days of testing to uncover the issue. I was able to correct the issue when looking at an example setup document located at http://stevejenkins.com/blog/2010/09/how-to-get-dkim-domainkeys-identified-mail-working-on-centos-5-5-and-postfix-using-opendkim/

Justin

Discussion

    • status: open --> closed
     
  • Please reopen this bug with a SourceForge ID. We are unable to reply to bugs opened via Google accounts.