Sender domain migration
Learn how to warm up a new sending domain and protect deliverability by routing traffic gradually with channel groups.
This page covers how to migrate to a new sending domain in Knock, warming it gradually to avoid putting your email deliverability at risk. You'll set up the new domain as a new email channel in your Knock account, create a channel group containing both your new and existing email channels, and set conditions on the channel group to route traffic between the two. You'll use the channel group to raise the new domain's share of traffic on a warming schedule, retiring the old domain once deliverability is confirmed.
Prerequisites
#This tutorial assumes you already have a Knock account with a configured email provider sending your production traffic, and that your new sending domain is set up and verified with a provider. SPF, DKIM, and DMARC should already be configured and passing for the new domain.
You'll also need access to the Management API to create and configure your channel group, and the Knock CLI to update your workflows in bulk.
Domain warming schedule
#Plan out your warming schedule before you start routing any traffic. Use Knock's email domain warmup calculator to generate a schedule sized to your volume. As a general rule, plan for roughly 30 days to reach full volume, starting at a low daily volume and increasing it gradually as deliverability holds up at each stage. Spread each day's volume evenly across your sending window rather than sending it all in a single burst.
You can implement your channel group routing before your domain warming schedule begins. Keep your channel group conditions set to route 100% of traffic to your existing domain's channel until you're ready to begin migrating.
Traffic routing mechanisms
#When planning your migration, decide which controls you'll use to route each workflow recipient run between domains. We recommend a combination of recipient-based controls and workflow allowlisting, giving you fine-grained control over what moves and when.
-
Route traffic based on recipient attributes. Consider targeting your most engaged users early in the domain warming process. Segment your priority recipients into an audience. This could be a static audience you add to over time, or a dynamic audience based on user properties. Reference this audience in your channel group conditions to route emails to these recipients through the new domain.
-
Route traffic on a per-workflow basis. To keep all traffic for your most critical workflows like password resets routed to your established domain, include a workflow allowlist in your channel group configuration. Gate critical workflows until you've built confidence in the new domain's reputation. Referencing an environment variable as the allowlist rather than hardcoding workflow keys into the condition enables you to update which workflows are included without editing the channel group itself.
We recommend considering a combination of engagement and criticality when deciding the order in which to migrate your workflows to the new domain:
- High-engagement, low-criticality workflows first. For example, an alert or digest that recipients open often but where the business doesn't break if a message is delayed or missed.
- High-engagement, high-criticality workflows next. Recipients reliably engage with password resets and account notifications, but their criticality means you should wait until you've validated the new domain's reputation on lower-stakes traffic first.
- High-volume, low-engagement workflows last. Digests or notifications with a large recipient base but low open rates carry the most reputation risk per message and benefit most from a domain that's already established.