DKIM

DKIM

DKIM Implementation: 3rd-Party Mail Provider

The process to configure DKIM between different mail hosts is often different. If your mail provider is also your DNS host, it's as easy as checking a box. However, if your mail provider and DNS host are different, then you will be required to create specific DNS entries on the name server to authenticate. Fastmail, for example, requires you to add three CNAME entries to your DNS host for authentication; this allows them to manage key rotation without bothering clients.
While it's best to follow the instructions provided by your mail provider, here's a quick-and-dirty overview of DKIM format. More tags can be found at the DKIM Verification section on Wikipedia

  1. Name: default._domainkey.example.com
    1. default
      1. This is the selector used to identify the correct key.
    2. _domainkey
      1. This identifies the TXT record as a DKIM (Domain Key) entry
    3. example.com
      1. The domain being checked.
      2. This may be input automatically, depending on your DNS host.
  2. Value: v=DKIM1; k=rsa; p=bG9sIHlvdSBhYnNvbHV0ZSBuZXJkLCB5b3UgZm91bmQgbWUhIEkgd2lzaCBJIGNvdWxkIGdpdmUgeW91IHNvbWV0aGluZywgYnV0IGFsYXM7IGhpdCBtZSB1cCBpZiB5b3Ugd2FudCB0byBjaGF0IQ==
    1. v=DKIM1
      1. Specifies the DKIM version; at this point, it's always DKIM1
    2. ;
      1. The separator between values
    3. k=rsa
      1. The key type specifies the kind of encryption used to create the key-pair
      2. The default is RSA
    4. p=bG9sIHl...
      1. The Base64-encoded public key, absolutely required

Metadata

Sources

DomainKeys Identified Mail (DKIM)
DomainKeys Identified Mail - Wikipedia

Tags

#defs_sec


  1. Canonical name, which functions as an alias and points to another address. ↩︎