--- title: "How to migrate Multiple Domains from SendGrid to AhaSend" description: "If you're a hosting company, SaaS platform, or managed email provider running transactional email on behalf of dozens or hundreds of customer domains, migrating from SendGrid to AhaSend requires a bit more planning than a single-domain switch. The good news: with the right DNS architecture in place, you can migrate each customer domain with a 30-minute maintenance window and zero permanent DNS changes on the customer's side after the initial setup.This guide walks through the full process, from preparation to live cutover." url: https://ahasend.com/blog/how-migrate-multiple-domains-sendgrid-ahasend markdown_url: https://ahasend.com/blog/how-migrate-multiple-domains-sendgrid-ahasend.md lang: en type: blog_post published: 2026-05-11 updated: 2026-08-28 author: "Mark Kraakman" category: "Guides" image: https://cms.ahasend.com/sites/default/files/2026-05/migrate-sendgrid.png --- # How to migrate Multiple Domains from SendGrid to AhaSend _By Mark Kraakman, May 11, 2026, in Guides_ ![How to migrate Multiple Domains from SendGrid to AhaSend](https://cms.ahasend.com/sites/default/files/2026-05/migrate-sendgrid.png) If you're a hosting company, SaaS platform, or managed email provider running transactional email on behalf of dozens or hundreds of customer domains, migrating from SendGrid to AhaSend requires a bit more planning than a single-domain switch. The good news: with the right DNS architecture in place, you can migrate each customer domain with a 30-minute maintenance window and zero permanent DNS changes on the customer's side after the initial setup. This guide walks through the full process, from preparation to live cutover. ## The architecture: why a DNS relay layer matters When you manage email for many customers, the biggest migration risk is DNS coordination. Asking every customer to update their DNS records twice - once to set up AhaSend, and potentially again in the future if you change providers or infrastructure - creates operational noise and support overhead. The approach described here solves that by introducing a DNS relay layer at your platform domain. Your customers point their DNS records once to your platform domain (for example `customer.com` → `dkim1.customer.com.yourplatformdomain.com`). From that point on, your platform domain controls where those records resolve. You can cut over from SendGrid to AhaSend by updating your own DNS records, with no further action required from your customers. This is a one-time setup cost that permanently eliminates customer DNS coordination for all future migrations or infrastructure changes. ## What to gather before you start Before touching any DNS or AhaSend configuration, collect the following for each customer domain from your SendGrid dashboard: **DKIM configuration:** For each domain, note the DKIM selector(s) in use and the full DKIM subdomain. SendGrid typically uses `s1`/`s2` or `os1`/`os2` as selectors, with corresponding subdomains like `s1._domainkey` or `os1._domainkey`. These vary per customer - check each domain individually in the SendGrid dashboard. **Return-Path subdomain:** Note the Return-Path subdomain currently in use. This often looks like `em3560.customer.com`. AhaSend now supports configuring a custom Return-Path subdomain, which means you can reuse the customer's existing record rather than creating a new one. This avoids dangling DNS records and keeps the customer's DNS clean. **Tracking domain:** Note any custom tracking domain in use, for example `url7936.customer.com`. If a customer doesn't have a custom tracking domain configured in SendGrid, you can use AhaSend's default tracking setup. ## Step 1: Set up the DNS relay layer at your platform domain For each customer domain, create CNAME records at your platform domain (`yourplatformdomain.com`) that initially point to the current SendGrid destinations. These are the intermediate records your customers will point to - and later, you'll update them to point to AhaSend. Using `customer.com` as an example customer domain: | Record at yourplatformdomain.com | Type | Initially points to | After migration points to | | --- | --- | --- | --- | | dkim1.customer.com.yourplatformdomain.com | CNAME | s1.domainkey.\.wl035.sendgrid.net | uniqueidentifier.setup.ahasend.com | | dkim2.customer.com.yourplatformdomain.com | CNAME | s2.domainkey.\.wl035.sendgrid.net | uniqueidentifier.setup.ahasend.com | | track.customer.com.yourplatformdomain.com | CNAME | sendgrid.net | track.ahasend.com | | prsp.customer.com.yourplatformdomain.com | CNAME | em\.wl035.sendgrid.net. | rp.ahasend.com | ## Step 2: Ask each customer to update their DNS records (once, ever) Each customer needs to add or update their DNS records to point at your platform domain instead of directly at SendGrid. This is the only DNS change customers will ever need to make. Using `customer.com` as the example: | Record | Type | Update to | | --- | --- | --- | | s1.\_domainkey.customer.com | CNAME | dkim1.customer.com.yourplatformdomain.com | | s2.\_domainkey.customer.com | CNAME | dkim2.customer.com.yourplatformdomain.com | | url\