DKIM - Will not work!

Hi

I have been following the documentation on Wiki Sympl
regarding how to set up the DKIM records.

I have followed it to but don’t understand what it means after running sudo sympl-dns-generate add the DKIM record from /srv/example.com/config/dns/example.com.txt to the DNS for your domain.

Please can someone clarify what this means? The file gets created but there is no sign of any DKIM information within the file. The only DKIM information I have is /config/dkim and /config/dkim.key

I am not running Mythic Beast or anything - I am just doing this manually and I found it easier to get the email working. It just won’t send to GMAIL accounts because the DKIM is not set up.

Many thanks in advance.

Hi cyrie3

/srv/example.com/config/dns/example.com.txt should contain something like:

#
# DKIM records
#
'example.com._domainkey.example.com:v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2MZv70C4Yf04RNEb2kcVygjD5RRQ3iwN38pAXZ7jglviMZfC1j7iF+u4auWxrluCZpWQCZNQ03VzbPr2Q7/67uyhlUjKmzgGB97xX7L8i563FZleA06xelC/RpO1K9+7jzgqXlYHI00ewCiR/DdxVfznkeZXXq3RfaTfpqYyJOXzw3ywZkdZQyMjw+liWt/69w6tu98Zxk2BtkZDpewYcquxoiB2JF+QlcnFHlbkVIziSQy75qZQEmwEtictyLcSLjkYhVcLuHh7yqVferqnceqTugOHOu2/U0LsDG7+f2cEbaa46sFsRT7zSqvXKs3aseECOd0/AlO4hPf8qCE2UwIDAQAB:300

If not, does sudo sympl-dns-generate example.com --verbose show anything interesting?

If you follow the steps in the instructions, you should get the dkim section in the file /srv/domain.co.uk/config/dns/domain.co.uk.txt
It will contain lots of stuff, but the bit you need should be near the bottom and say something like:

DKIM records

'default._domainkey.domain.co.uk:v=DKIM1; k=rsa; p=MIIBIjAN [lots removed here] QAB:300

In the dns settings, you create a txt record called
default._domainkey

with content
v=DKIM1; k=rsa; p=MIIBIjAN [lots removed here] QAB

Be sure to collect the contents using cat (not tail or nano) and be careful not to include any spaces in the section after p=MII

cyrie3

Your opening post lacks detail so it’s difficult to offer guidance. Please add more detail to the following:

Please clarify that you have sympl installed?
Are you trying to host your own dns via Octodns?
Or will you hosting domain dns with your registrar?

For info, I have failed to successfully setup Octodns so I host my dns with a domain registrar.

Please post the bigger picture.

This command should get the section that hairydog mentioned:

grep DKIM /srv/example.com/config/dns/example.com.txt | cut -d ':' -f 2

In case you haven’t seen it, you can give DNS via Mythic Beasts API a go. (Works for me, tested up to the current octoDNS v1.11.0).