How do I configure DKIM records?

Linode Staff

How can I configured DKIM records in the Linode DNS Manager?

6 Replies

Per our guide on Creating a DKIM record, these records are implemented as TXT records.

A typical DKIM record will look like the following:

selector1._domainkey.example.com TXT k=rsa;p=J8eTBu224i086iK

Hi, sorry for a noob question but shell I replace the "example" with the domain name and leave the rest as in the example? Say my domain is supercool.eu so the record would look like so:

selector1._domainkey.supercool.eu TXT k=rsa;p=J8eTBu224i086iK

Thanks!

All "noob" questions are welcome :)

selector1._domainkey.supercool.eu TXT k=rsa;p=J8eTBu224i086iK

Yes, that should do it.

Though to clarify, when adding this to your DNS Manager, if you enter the below your domain (supercool.eu) will automatically be appended. So all you'd need to add in the Hostname and Value sections would be:

Hostname: selector1._domainkey
Value: k=rsa;p=J8eTBu224i086iK
TTL: default

One more question. Does this J8eTBu224i086iK remain same for all domains, like even for my domain it will remain same?

@tabarry --

You write:

One more question. Does this J8eTBu224i086iK remain same for all domains, like even for my domain it will remain same?

No, this is a crypto hash generated by your Linode. Mine is generated as follows:

opendkim-genkey -s $SELECTOR -d $DOMAIN -b $KEYLEN -D $DIR

where:

  • KEY="mailkey"
  • KEYLEN=1024
  • SELECTOR=${KEY}.${KEYLEN}
  • DOMAIN="mydomain.com"
  • DIR=${HOME}/tmp   <<-- This dir has to exist. If it doesn't for you, use /tmp. This is where the file containing the hash you want to install ends up.

I update it monthly with a cron(1) job that invokes the Linode CLI.

opendkim-genkey is from the opendkim package -- see:

https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/

for Debian/Ubuntu.

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct