SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to authenticate and send from a "Subdomain"

Objective

This guide cover authentication and sending emails from a subdomain, instead of a regular root domain.

 

Product

Twilio SendGrid Email

 

Environment

SendGrid Console

 

User Account Permission/Role(s) Required

Account administrator or teammate with Administrator or Sender permissions.

 

Procedure

Sending from a subdomain is similar to sending from the root domain. In order to send from "@subdomain.domain.com", you would need to first authenticate "subdomain.rootdomain.com" using  SendGrid's documented Domain Authentication process:

  • To send from "@subdomain.rootdomain.com" you would need to follow the same domain authentication process linked above, but instead of entering just the root domain, you would enter the full subdomain: subdomain.rootdomain.com.
  • This will create records like "em####.subdomain.rootdomain.com", which will need to be added to the DNS registrar for the root domain. This is the registrar for "rootdomain.com" in this example.
  • Once the subdomain records are added and the subdomain is valid in SendGrid, you will be able to send from any_email@subdomain.rootdomain.com.
  • With both the subdomain and domain authenticated, you would be able to send from both domains (root and subdomain) as needed. If you wish to send from a different subdomain, you will need to authenticate it in the way described above. 

Additional Information

If your DNS hosting automatically adds the domain after the entry in the "Host" field, you just need to enter the first part of the CNAME record as em123.subdomain for the record to resolve as em123.subdomain.rootdomain.com.

Have more questions? Submit a request
Powered by Zendesk