1

Topic: [SOLVED] domain keys invalid

I'm using latest iRedMail-0.7.2 on CentOS 5.6, and I'm trying to setup DKIM following the instructions here -> http://code.google.com/p/iredmail/wiki/DNS_DKIM. I've also added a TXT record via networksolutions.com DNS manager, unfortunately when I tested it using the command "# amavisd testkeys" I get the the following message:

TESTING#1: dkim._domainkey.domainname.com       => invalid (public key: OpenSSL error: bad base64 decode)

How do I fix this?

Many thanks!

2

Re: [SOLVED] domain keys invalid

jan wrote:

TESTING#1: dkim._domainkey.domainname.com       => invalid (public key: OpenSSL error: bad base64 decode)

Did you try to create a new DKIM key?

3

Re: [SOLVED] domain keys invalid

Created a new key as suggested, restarted amavisd, and reconfigured DNS, result -->

[root@mail dkim]# amavisd testkeys domainname.com
TESTING#1: dkim._domainkey.domainname.com       => pass

I've also created keys for the other four virtual domains, made changes to amavisd.conf and corresponding DNS TXT records, now they're all working.

Thanks Zhang!