Skip to main content

Overview

After you add a custom sending domain, Migma gives you DNS records for ownership, DKIM, SPF, DMARC, and the custom MAIL FROM return path. Add those records wherever your domain’s nameservers are managed.
Migma sending domains are for permission-based email. Only send to people who expect email from your brand, and review what you can send before sending campaigns.

Before you start

You need:
  • Access to your DNS provider, such as Cloudflare, Route 53, GoDaddy, Namecheap, Squarespace, Wix, or another host
  • The Migma Sending Domains page open in another tab
  • The exact domain you want to send from, often a sending subdomain such as mail.yourcompany.com or updates.yourcompany.com
Using a sending subdomain is common because it keeps campaign reputation separate from your main website and day-to-day inbox domain.

Step 1: Add the domain in Migma

1

Open Sending Domains

In Migma, go to Sending Domains.
2

Choose Custom Domain

Click Add Domain, choose Custom, then enter the domain you want to send from.Examples:
  • yourcompany.com
  • mail.yourcompany.com
  • updates.yourcompany.com
3

Select the sending region

Pick the region closest to your audience or required by your data policy, then add the domain.
Migma Add Domain dialog with the Custom tab selected

Step 2: Open the DNS records

Migma shows every record you need to create. Keep this table open and copy each value directly.
Migma DNS records table for a custom sending domain
Most custom domains have 8 records:
PurposeTypeWhere it goes
Ownership verificationTXTThe sending domain
DKIM authenticationCNAMEThree _domainkey hostnames
SPF sending authorizationTXTThe sending domain
DMARC policyTXT_dmarc under the sending domain
Custom MAIL FROMMXsend under the sending domain
MAIL FROM SPFTXTsend under the sending domain
If Migma shows Custom MAIL FROM not configured, add both pending MAIL FROM records: the MX record and the TXT record. The MX record needs priority 10.

Step 3: Translate the record name

DNS dashboards usually ask for a Name, Host, or Record name. This is the part most often entered incorrectly. Use the name Migma shows, but make it relative to the DNS zone you are editing if your provider auto-appends the zone.
Migma record nameDNS zone you are editingEnter this name
mail.example.comexample.commail
_dmarc.mail.example.comexample.com_dmarc.mail
send.mail.example.comexample.comsend.mail
send.mail.example.commail.example.comsend
example.comexample.com@ or leave blank, depending on provider
Do not create send on the wrong zone. send.mail-eu.example.com and send.mail-us.example.com are different hostnames even though both can appear as send when you are editing separate delegated zones.

Step 4: Add each record at your DNS provider

Create one DNS record for each row shown in Migma.
1

Add the ownership TXT record

Create a TXT record with the Migma verification value, such as migma-verify=....
2

Add the three DKIM CNAME records

Create all three CNAME records. The names contain _domainkey, and the targets end in dkim.amazonses.com.In Cloudflare, set DKIM CNAME records to DNS only. Do not proxy them.
3

Add the SPF TXT record

Create or edit the SPF TXT record for the sending domain.If there is no SPF record yet:
v=spf1 include:spf.migma.ai ~all
If the domain already has SPF, keep one SPF TXT record and add Migma before the final mechanism:
v=spf1 include:_spf.google.com include:spf.migma.ai ~all
4

Add the DMARC TXT record

Create the _dmarc TXT record exactly as Migma shows it.
v=DMARC1; p=quarantine; rua=mailto:dmarc@migma.ai
5

Add the MAIL FROM MX record

Create the MX record for the MAIL FROM hostname, usually send under your sending domain.
  • Priority: 10
  • Mail server: copy the Migma value, such as feedback-smtp.eu-west-1.amazonses.com
6

Add the MAIL FROM SPF TXT record

Create the TXT record on the same MAIL FROM hostname.
v=spf1 include:spf.migma.ai ~all
For TXT values, most DNS dashboards add quotes automatically. Paste the text value without surrounding quotes unless your provider specifically requires quoted TXT strings.

Provider field guide

  1. Open Cloudflare and select your zone.
  2. Go to DNS -> Records.
  3. Click Add record.
  4. Copy the record type, name, and value from Migma.
  5. For DKIM CNAME records, set Proxy status to DNS only.
  6. Leave TTL as Auto.
Cloudflare may display full names after saving. That is normal as long as the resolved hostname matches the Migma record.Reference: Cloudflare DNS record guide

Step 5: Verify in Migma

After saving the DNS records, return to Migma and check the domain.
1

Wait a few minutes

Most DNS providers publish updates within 5-60 minutes. Some records can take longer.
2

Open the domain menu

In Sending Domains, open the action menu for the domain.
3

Click Check DNS

Migma checks each record and updates the status.
Migma sending domain action menu with Check DNS

Common issues

This usually means the full record name was pasted into a field that expected only the host prefix.Example problem: entering send.mail.example.com in the example.com zone creates send.mail.example.com.example.com.Fix it by changing the name to send.mail.
A domain should have one TXT record that starts with v=spf1. If one already exists, edit it and add include:spf.migma.ai before ~all or -all.
In Cloudflare, DKIM CNAME records must be DNS only. Email authentication records cannot use the orange proxy cloud.
Check both MAIL FROM records. The MX record and TXT record must use the same hostname, usually send under the sending domain.Amazon SES requires the custom MAIL FROM domain to have exactly one MX record for that hostname. If another service already owns that hostname, remove the old record or use a different sending domain.
Your registrar is not always your DNS host. Check your nameservers, then add Migma records at the provider listed there.

References

These provider docs informed the field labels and DNS-entry rules in this tutorial: