Configure CNAMEs for SendGrid, how to?

Hello, I’m almost a complete noob at this.

I followd Discrouse’s install instructions and created an account on SendGrid to serve as a mail server for Discourse. However, I seem to cannot validate the domain (whitelabeling) that I added on the SendGrid account. It seems that I don’t know how to add the CNAME records for my droplet’s domain, because I’m getting the following message:

Error validating domain: Expected CNAME for “” to match “”. Expected CNAME for “” to match “”. Expected CNAME for “” to match “”.

I hope it’s still propagating.

Can somebody help, please? :D

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer


In your do admin panel go to Network > Domains >

Then, create the following cnames:

Notice two things:

  1. In the source don’t put the whole domain aka; just the subdomain aka mail
  2. In the target append a dot

SendGrid shows you something like

in DigitalOcean when adding a CNAME… drop the from the first value

so enter

s1.domainkey -> s1.domainkey.u…

when you see the setup after saving… you will see something like 1800 IN CNAME

or something… then validation should happen fairly quick

Jon Schwenn
DigitalOcean Employee
DigitalOcean Employee badge
January 25, 2016

Hey there,

Thank you for reaching out to us!

You’d want to add the CNAME records here.

If you have a problem with adding the CNAME records or would like support to double check the records for you, reach out to us with a support ticket.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel