1

Topic: DKIM not working correctly

============ Required information ====
- iRedMail version: mail_version = 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue: N/A
====

What is the dkim record supposed to look like? I've tried both using our full domain a couple sub domains and even appending dkim._domainkey. to the front. Even so useing the "amavisd testkeys" command still returns:

=> invalid (public key: not available

Doing a dig returns this:

dig -t txt [OUR DOMAIN]

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> -t txt [OUR DOMAIN]
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36750
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;[OUR DOMAIN].            IN    TXT

;; ANSWER SECTION:
[OUR DOMAIN].        21339    IN    TXT    "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4sJ2aNI213EULtQ9bnB4J3vFy9Ldd52VyNAt0xPIOCnWKtzs4f2HkvcxvEcdZFTcSEQlGLEKPGDFC/S4CiCzjiWmkxQ4/3HwO6FKBb7X7AcVWNtaJLIDG6W617gDF6jYKnJ3uMmLuiAfoDyM9ewPcZejwNSgPpFlZ4qDxYchpKwIDAQAB"
[OUR DOMAIN].        21339    IN    TXT    "v=spf1 include:[OUR DOMAIN] -all"

;; Query time: 2 msec
;; SERVER: 10.0.0.23#53(10.0.0.23)
;; WHEN: Fri Oct 24 07:46:37 2014
;; MSG SIZE  rcvd: 309

What are we missing?

----

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

2

Re: DKIM not working correctly

You can see the full domain name with "amavisd showkeys". For example: dkim._domainkey.[YOUR_MAIL_DOMAIN].