Report this

What is the reason for this report?

DKIM / DMARC not working.

Posted on September 18, 2015

Greetings. I am very new to everything about domains and such things, so I will try to explain my problem as best as I can: I followed this guide in order to make mails outgoing from my VPS less of a threat to the outside world, but the DKIM/DMARC configuration didn’t seem to work. I have a TXT name: mail._domainkey.mydomain.com and the text value: v=DKIM1; k=rsa; p=keystring However, in the DO Control Panel, in the “Zone file” area, I’m shown this: mail._domainkey.mydomain.com.mydomain.com. 1800 IN TXT v=DKIM1; k=rsa; p=keystring I’m not sure it should be using the domain name twice, so I changed the TXT name to simply: mail._domainkey And that fixed the “Zone file” repetition. However, this website hasn’t been able to validate the DKIM key in any of the two aforementioned ways, and always gives me the following error:

DNS query failed for 'mail._domainkey.mydomain.com':NXDOMAIN
A public-key (p=) is required```
What am I doing wrong, and how can I fix it?
As a side note, "mydomain.com is just an alias I used to keep my actual domani hidden. Additionally, I don't have any ports open other than a custom port for OpenVPN and another custom port for nginx, in case it needs an open port.
If you need more info, I will gladly provide it.


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

What is the actual domain, actual email headers and actual DKIM record?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.