1

Topic: Dkim adding a new domain problem

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.3
- Linux/BSD distribution name and version: Ubuntu 14.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

I have a similar problem with this one

http://www.iredmail.org/forum/topic2632 … small.html

I tried with  amavisd-new genrsa /var/lib/dkim/new_domain.com.pem 1024 => too large
then amavisd-new genrsa /var/lib/dkim/new_domain.com.pem 512 => too small

P.S. there is no problem with the first domain(it passed the test)

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dkim adding a new domain problem

Default key length is 1024, it should be fine. You can try it.

3

Re: Dkim adding a new domain problem

I tried once more with 1024 and now when I test the key.

...=> fail (bad RSA signature)

4

Re: Dkim adding a new domain problem

Amavisd will generate DKIM key with specified key length, and if your DKIM DNS record is correct, it should bypass the test.

So i suggest double check both generated key and DNS record.