Topic: Dkim invalid public key: not available
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Ubuntu 14.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I noticed a problem today on my server, the output of amavisd-new testkeys:
TESTING#1: dkim._domainkey.domain1.com => invalid (public key: not available)
TESTING#2: dkim._domainkey.domain2.com => invalid (public key: not available)
Two years ago I setup dkim for my server and it worked.
Two month ago I changed the full hostname for my server(in /etc/host /etc/amavis/conf.d/50-user /etc/postfix/main.cf) and setup some ssl. And no errors occurred. At that moment I did not tested the amavis keys.
I'm using bind for my dns and I regenerated those keys but they are still invalid.
dns records
; key#1, domain domain1.com, /var/lib/dkim/domain1.com.pem
dkim._domainkey.domain1.com. 3600 TXT (
"v=DKIM1; p="
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDbJBfaB4FeuCRDC0rvMxUOLYPW"
"sK5m1DA0e6SzM9jVhCycsIBDgXHPjBKC+IWaZkFnH2GaxgFJ2VUaL4r5Ep1S/ses"
"5vahGjUbsFmnT7bGdHx7crpdZx15PqSQHZL+tCkcjU+7PUrReCjyz+w9tukTVZdO"
"hV32LjDcaKG1XQk8KwIDAQAB")
; key#2, domain domain2.com, /var/lib/dkim/domain2.com.pem
dkim._domainkey.domain2.com. 3600 TXT (
"v=DKIM1; p="
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwtyoO5xDIXft/6uVux4dHpD4o"
"2sxLG0/jZGEj1+gjQPMIGxO9pi0x7+c7ydEvxFM0NEjhMhfXYNMexk+xXvt9KkL7"
"PrvsBAlL6jbCxvmHCFUPqV2cs5ClZla+NX6xB4dxymnf4jLnEABFft5SJPUUhNHD"
"TB+6deiICNkFU7IYswIDAQAB")
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.