slender
By:
slender

Error by setting up a DKIM for Mail Chimp

July 15, 2015 24.6k views
DNS

Hello,

I'm getting an error by making the following CNAME record:

k1._domainkey.infentorides.com to dkim.mcsv.net

Could you please tell me what to do?

Thanks in advance guys!

11 comments
  • What error message are you seeing?

  • I am having the same problem, some help would be highly appreciated.

    I am just not sure how to set the right DNS records for mailchimp. Mailchimp gives these steps:

    Set a TXT (SPF) record for XXX.com to:

    v=spf1 include:servers.mcsv.net ?all
    

    Set the CNAME record for k1._domainkey.XXX.com to:

    dkim.mcsv.net
    

    For the TXT record I need a "name" and "text". For the CNAME I need as well a "name" and "hostname". Which one is which?

  • DKIM is entered as a text record in your DNS zone. Here is an example of a common DNS zone, with A, CNAME, SPF and DKIM record..... These are just examples, you would obviously enter your own information, but this should give you a reasonable idea.

    For A record....
    Record type is A. Name Field is domain.name and Hostname will be your droplet IP address

    For CNAME....
    Record Type is CNAME Name field is www or any other alias or subdomain, Hostname will be your domain.name

    For SPF....
    Record Type is usually entered as TXT (because SPF is deprecated). Name Field is domain.name and the Text field will be your SPF information v=spf1 a ip4:XX.XX.XX.XX include:_spf.google.com ~all <<<---Obviously that is just an example of a SPF entry, you would have created your own, replacing the X's with your IP address and your include would likely be whatever you are supposed to be entering for Mailchimp instead of Google, but like I say, it's just to give you an idea.

    For DKIM record....
    Record Type is TXT. Name field is usually mail._domainkey ,Text field will be your key v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7w+x5d4FaFam3hAcrunEswan+/GhyIunbecru4u4AyabASuc3aGA2r2qerevAteP/ns/Xd6AxEfUnuD8ereswak8hUtUbUdedEPrec//cReWa4rephanewEyudrekaJebrAkefRuspeprad6UsecRUjaSEjac3UtHAd4umuWHteIDAQAB <<<---Obviously that is just an example of a DKIM key, you would have created your own.

    I hope that helps.

    Good luck.

  • I did it! :)
    with a CNAME record.

    forgot the (dot) at the end of the "dkim.mcsv.net" so "dkim.mcsv.net."

  • @slender how did you do it? I still get an error from mailchimp. The txt record seems to work but the cname doesn't.

    It says:
    DKIM: DKIM (CNAME record) should point from k1._domainkey.XXX.com to dkim.mcsv.net

    I have set it like this:

    Type: CNAME
    Name: k1._domainkey.XXX.com
    Hostname: dkim.mcsv.net.

  • @snowball: as @slender said, you need to add a trailing dot to k1._domainkey.XXX.com so that it is a recognized as a FQDN (otherwise, the origin/domain name will be appended to it, so it would be as if you entered k1._domainkey.XXX.com.XXX.com): k1._domainkey.XXX.com.

  • @kamaln7 awesome, thanks that worked. Didn't got that both of them need dots at the end.

    Working DNS Records for future reference:
    Type: TXT
    Name: @
    Text: v=spf1 include:servers.mcsv.net ?all

    Type: CNAME
    Name: k1._domainkey.XXX.com.
    Hostname: dkim.mcsv.net.

    (obviously XXX.com has to be replaced with the domain you are using to send emails from mailchimp)

  • I'm glad you all managed to resolve your issues in the end...well done. :)

    It might be worth noting that there are so many differences in configuring these things, for instance, Cludflare requires you to enter your records differently to how they are entered if you are using DO for your DNS records, and I dare say there are many differences across the board with how things are entered at different places. It's a great learning curve though and good to be able to get help from the community. :)

  • About the DKIM, I have tried without the domain and it worked fine!

    Type: CNAME
    Name: k1._domainkey
    Hostname: dkim.mcsv.net.

  • I can confirm that removing your domain from the Name: made it work for me.

    Thanks a lot

  • How long did the changes take to resolve because it's not working for me, I'm still getting this error:

    We tried to verify your DNS changes and did not detect the right values. Remember that DNS changes can take 24-48 hours to propagate through the internet.
    
    DKIM: CNAME record for k1._domainkey.XXX.co pointing to dkim.mcsv.net not found.
    SPF: TXT record containing 'include:servers.mcsv.net' not found.
    

    Also, some people have suggested double-quotes around the TXT record's value, is that required or does it not matter? Thanks!

3 Answers

This question was answered by @newhosting2015:

DKIM is entered as a text record in your DNS zone. Here is an example of a common DNS zone, with A, CNAME, SPF and DKIM record..... These are just examples, you would obviously enter your own information, but this should give you a reasonable idea.

For A record....
Record type is A. Name Field is domain.name and Hostname will be your droplet IP address

For CNAME....
Record Type is CNAME Name field is www or any other alias or subdomain, Hostname will be your domain.name

For SPF....
Record Type is usually entered as TXT (because SPF is deprecated). Name Field is domain.name and the Text field will be your SPF information v=spf1 a ip4:XX.XX.XX.XX include:_spf.google.com ~all <<<---Obviously that is just an example of a SPF entry, you would have created your own, replacing the X's with your IP address and your include would likely be whatever you are supposed to be entering for Mailchimp instead of Google, but like I say, it's just to give you an idea.

For DKIM record....
Record Type is TXT. Name field is usually mail._domainkey ,Text field will be your key v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7w+x5d4FaFam3hAcrunEswan+/GhyIunbecru4u4AyabASuc3aGA2r2qerevAteP/ns/Xd6AxEfUnuD8ereswak8hUtUbUdedEPrec//cReWa4rephanewEyudrekaJebrAkefRuspeprad6UsecRUjaSEjac3UtHAd4umuWHteIDAQAB <<<---Obviously that is just an example of a DKIM key, you would have created your own.

I hope that helps.

Good luck.

You can see the comment here.

Hi, thank you all for the discussion. I have been stuck with the same Mailchimp/Mandrill problem for 4 months now, and no one has been able help me. My server's tech has tried and given up.

When I try to authenticate domain, I get the error:

*We tried to verify your DNS changes and did not detect the right values. Remember that DNS changes can take 24-48 hours to propagate through the internet.

DKIM: CNAME record for k1._domainkey.MYDOMAIN.com pointing to dkim.mcsv.net not found.
SPF: TXT record containing 'include:servers.mcsv.net' not found.*

My inputs for Mailchimp can be seen here: https://drive.google.com/file/d/0BxtyV7x3Tn_IR1BxdENYVVg4Y2M/view?usp=sharing

Any help appreciated.
Thanks

  • Try adding a period to dkim.mcsv.net in your CNAME.

    dkim.mcsv.net. << period at end

To verify DKIM for Cloudflare, follow the normal instructions but also turn OFF the Orange Cloud.

[https://www.smallbiztriage.com/wp-content/uploads/2016/10/DKIM-MailChimp-CloudFlareFix-Small-Biz-Triage.png](http://)

Have another answer? Share your knowledge.