Marketing Cloud DKIM FAQ

Frequently Asked Questions (FAQ) Regarding DKIM keys and DKIM DNS entries

Q: Why is the DKIM TXT entry so long?

A: Your DKIM key is a 2048 bit key, which results in a single, multi-string text record.  This enhances security and better protects against spam and spoofing.  The reason it is multi-string is because there is a 255 character limit.  Per RFC 4408, to get around this limitation, the record is broken out into multiple strings, but concatenated together to be just one record.

Q: How do I enter the record in DNS?

A: This could vary. You can start by trying to add it just as it was provided in the zone file, as this usually works fine.  Some DNS providers have figured out how to accept an entry in this format, however some do not. GoDaddy, for example, does not, however you can enter it all in one line and GoDaddy will break it out for you.  To get this format, you would take the entire multi-string TXT record provided, remove the quotes, remove new lines, and put it all in one line.  If neither of these work for you, you should contact support of your DNS provider and have them help you add it.  They should be aware of what this is and how to enter it correctly in their platform.

Q: How can I check to ensure that it is entered correctly?

A: I recommend this online tool:

Paste in the selector, and then the domain, and it will check it.

Example: If you want to check DKIM for, you would put 10dkim1 as the selector, and then as the domain to see the results.

Q: Can Salesforce Marketing Cloud help configure this DNS record?

A: While Salesforce support will try to help in any way they can, they cannot really troubleshoot this for you, as they are not hosting your DNS, nor do they know what DNS provider or platform you are using. Each DNS management tool is different, with different user interfaces and different limitations or potential quirks with regard to how DNS records are managed.

Q: What if I have followed the steps above but it is still not correct?

A: I would suggest that you go back to your DNS provider for help, but I can take a look to try and help figure it out. Please include as much detail as possible — tell Salesforce support who your DNS provider is, and please provide them copies of any communication you have had with your DNS provider so they can better understand the situation and help you to troubleshoot the issue.

Q: What are the alternatives?

A: SFMC can offer a 1024-bit key instead as an alternative, please keep in mind that this is a less secure choice.

Q: My DNS host isn’t able to help, what now?

A: There are lots of tutorials online on how to break up a 2048-bit DKIM key into chunks so that the chunks are less than 255 characters and can be hosted with whatever common DNS tool is being used (links below).

You’re not the first to run into this issue:

Q: How do I generate the DKIM for my domain?

It is not your responsibility to generate a DKIM key for Marketing Cloud. You have two options on how to ensure that the domain you are sending from has a valid DKIM key:

  • Delegated domain: If you are delegating the domain to the name servers of Salesforce (like most customers do), then Saleforce will manage the DNS entries for you. This also goes for the DKIM key, which in practice is stored in a TXT record. Hence you should not worry on the managing the actual DKIM key yourself.
  • Self hosting: If you are self hosting your DNS records for the domain in question, Salesforce provides you with a zone file holding all the relevant DNS records, including the DKIM as a TXT record. Please see an example of such a file here below:

@               IN MX 10
@               IN A  

bounce          IN MX 10
reply           IN MX 10
leave           IN MX 10

image           IN CNAME
view            IN CNAME
click           IN CNAME
pages           IN CNAME
cloud           IN CNAME

mta             IN A  

50dkim1._domainkey  IN TXT ( "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+pwSE2FxqncAgzL"
"..." )

##the above TXT record should be a single multi-line TXT record

@               IN TXT          "v=spf1 -all"
bounce          IN TXT          "v=spf1 -all"
reply           IN TXT          "v=spf1 -all"

Leave a Reply

Your email address will not be published. Required fields are marked *