DKIM Public Key not available

Discussion in 'Installation/Configuration' started by rbartz, Jun 6, 2017.

  1. rbartz

    rbartz Member HowtoForge Supporter

    On Centos 7.3, ispconfig-3 3.1.3, I am setting up DKIM for a domain. On the first attempt it broke amavisd on a path error. I ran ln -s /etc/amavisd/amavisd.conf /etc/amavisd.conf, created /var/lib/amavis/dkim and chowned it to amavisd.amavisd. amavisd restarted.

    I recreated the DKIM keys for the domain and it created the key pair in /var/lib/amavis/dkim and put the record in the DNS for the domain. However, when I run amavisd showkeys, it only shows the private key and when I run amavisd testkeys it errors out saying that the public key is not available:

    TESTING#1 domain.com: default1496768288._domainkey.domain.com => invalid (public key: not available)

    I tried recreating the keys a few times but the problem remains. Any thoughts / help appreciated so much.

    Richard
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    If you use an external dns, it seems, that you missed some settings or the dns does not support longer txt-records. You can use amavisd-new showkeys to see the correct public key.
     
  3. rbartz

    rbartz Member HowtoForge Supporter

    Thank you Florian, The problem was the DNS setup.

    Richard
     
    Last edited: Jun 8, 2017

Share This Page