Groundbase
← Back to the Pipeline
Guides

Verify your domain in Resend: the DNS records, DKIM, SPF and DMARC, step by step

How to verify a sending domain in Resend. Exactly which DNS records to add and where, what DKIM, SPF and DMARC are doing, and how to fix a domain that won't verify. About 15 minutes start to finish.

Setting up transactional email is one of those side-quests that sounds simple until you're 45 minutes in trying to figure out why DKIM isn't verifying. This walkthrough is the version I wish I'd had when I set up Resend for Groundbase.

The short version

  1. In Resend, go to Domains → Add Domain and enter your domain.
  2. Resend shows you three or four DNS records. Copy each one into your DNS provider (Cloudflare, Namecheap, GoDaddy, Route 53…) exactly as shown.
  3. Add a DMARC record yourself (Resend doesn't generate one).
  4. Back in Resend, click Verify. It usually turns green within about 15 minutes. DNS changes can take up to 72 hours to spread everywhere.

The rest of this post is each of those steps in detail, what every record means, and what to check when the domain sits on Pending.

The records Resend asks for

Every Resend domain needs the same handful of records. The values are specific to your domain and region, so always copy them from Resend's Records tab rather than from here. The shape looks like this:

PurposeTypeName (host)Value looks like
Bounces and feedbackMXsendfeedback-smtp.us-east-1.amazonses.com, priority 10
SPFTXTsendv=spf1 include:amazonses.com ~all
DKIMTXTresend._domainkeyp=MIGfMA0GCSqGSIb3… (a long public key)
DMARC (you add this one)TXT_dmarcv=DMARC1; p=none;
Click tracking (optional)CNAMElinkssomething like links1.resend-dns.com

Two things in that table answer most of the questions people search for:

  • The SPF include value is include:amazonses.com. Resend sends through Amazon SES underneath, which is why several records mention amazonses.com. That's normal.
  • The SPF and MX records go on the send subdomain, not on your root domain. That's deliberate. It means they don't touch the MX records that deliver your normal mail (Google Workspace, Outlook, Cloudflare Email Routing) or any SPF record you already have on the root. You add them alongside, and you don't merge anything.

Some accounts are shown DKIM as CNAME records instead of a TXT record. Either is fine: add whatever Resend shows you.

Step 1: Sign up for Resend

Head to resend.com and create an account. The free plan doesn't need a card: 100 emails a day and 3,000 a month, on one domain.

Until you verify a domain, you can only send from Resend's test address to the email on your own account. Verifying your domain is what lifts that.

Step 2: Add your domain

Click Domains in the side panel, then Add Domain. Enter the domain and pick the region closest to most of the people you'll email.

Resend recommends sending from a subdomain that says what the mail is for (say updates.yourdomain.com) rather than the root domain. That keeps marketing mail's reputation separate from your everyday mail. If you're just getting started, the root domain works too. Each subdomain you add is verified on its own.

Resend then shows the DNS records to add. Keep this page open; you'll copy from it in the next step.

Resend showing the DNS records to add

What each record does

So the "what am I even doing" feeling goes away:

  • SPF (Sender Policy Framework) says which servers may send mail for the domain. Resend's says "Amazon SES may send for send.yourdomain.com".
  • DKIM (DomainKeys Identified Mail) is a public key. Resend signs every email with the matching private key, and Gmail or Outlook check the signature against the key in your DNS. A valid DKIM signature is the strongest proof the mail is really yours.
  • MX on send gives bounces and spam complaints somewhere to go, so Resend can tell you about them.
  • DMARC tells mailbox providers what to do with mail that fails SPF and DKIM, and where to send reports. Gmail and Yahoo expect bulk senders to have one.

All of these are public by design. They're meant to be read by any mail server in the world.

Step 3: Add the records at your DNS provider

Every DNS provider has the same flow: Add record → pick the type (TXT, MX or CNAME) → paste the name and value → save. Repeat for each record Resend gave you.

Here's what it looks like in Cloudflare once they're in, mixed in with everything else on the domain:

Cloudflare DNS: full list with Resend records mixed in

In the screenshot, the four Resend records are:

  • links.groundbasecrm.com (CNAME → links1.resend-dns.com), click tracking
  • send.groundbasecrm.com (MX → feedback-smtp.us-east-1.amazonses.com), bounce handling
  • resend._domainkey.groundbasecrm.com (TXT), the DKIM key
  • send.groundbasecrm.com (TXT → v=spf1 include:amazonses.com ~all), SPF

Three things to get right while you're in there:

  • Enter the name the way your provider expects. Most providers add your domain to the end of the name automatically, so you type send, not send.yourdomain.com. Typing the full name gives you send.yourdomain.com.yourdomain.com, and verification never passes. This is the single most common mistake.
  • On Cloudflare, set every Resend record to DNS only (grey cloud), not Proxied (orange cloud). A proxied CNAME stops verification from completing.
  • Leave TTL on Auto. A short TTL means any later fix spreads quickly.

Add a DMARC record too

Resend doesn't generate this one, so add it yourself as a TXT record:

  • Name: _dmarc
  • Value: v=DMARC1; p=none; rua=mailto:you@yourdomain.com

p=none means "watch only, don't reject anything", which is the safe place to start. The rua address receives daily reports from mailbox providers. Once a few weeks of mail have gone out cleanly, you can tighten it to p=quarantine.

If your domain already has a _dmarc record, leave it alone. A domain only gets one.

Step 4: Verify in Resend

Back in Resend, open your domain and click Verify. Once every record is found, the domain shows Verified in green.

Resend showing the domain as Verified

How long it takes:

  • Usually about 15 minutes after the records are added.
  • Up to 72 hours in the worst case, because DNS changes take time to spread.
  • Still not verified after 72 hours? Something is wrong with a record. Fix it (see the checklist below), then use Restart verification on the domain page.

Step 5: Create an API key

Click API Keys, then Create API Key. Give it a name you'll recognise later (myapp-worker, Groundbase).

Which permission to pick:

  • For your own code that only sends mail: Sending access is enough, and it's the safer choice.
  • To connect Resend to Groundbase: pick Full access. Groundbase creates a webhook in your Resend account so deliveries, bounces, opens and clicks report back, and a Sending-access key can't create webhooks or list your domains, so Groundbase refuses it when you connect. The email help article has the rest.

The full key is shown once. Copy it into your password manager straight away. After you close that screen, Resend only shows the first few characters, and a lost key has to be deleted and replaced.

Resend API Keys page

Step 6: Use the key in your app

Keep the key in an environment variable, never in your code.

On Cloudflare Workers (like Groundbase or the GroundStack starter kit):

npx wrangler secret put RESEND_API_KEY
# paste the re_... value when prompted

In a Next.js or Node project:

# .env.local (DO NOT commit this file)
RESEND_API_KEY=re_xxxxxxxxxxxx
EMAIL_FROM="Your App <hello@yourdomain.com>"

Then:

import { Resend } from "resend";

const resend = new Resend(process.env.RESEND_API_KEY);

await resend.emails.send({
  from: process.env.EMAIL_FROM,
  to:   "user@example.com",
  subject: "Welcome",
  html: "<p>Hi there.</p>",
});

The from address has to be on the domain you verified (hello@, noreply@, anything). It doesn't need to be a real mailbox. If you want replies to reach you, forward that address to your real inbox, for example with Cloudflare Email Routing (free).

When the domain won't verify: a checklist

Work down this list. It's in order of how often each one is the cause.

  1. The name has your domain on it twice. Look up the record from outside, at Resend's dns.email tool or dnschecker.org. If it only exists at send.yourdomain.com.yourdomain.com, edit the name down to send.
  2. A value was copied with a character missing or added. DKIM keys are long, so compare the start and end against Resend's value. Watch for extra quotes: some DNS panels add their own quotes around TXT values, and pasting quotes too doubles them.
  3. Cloudflare proxy is on. The record shows an orange cloud. Switch it to DNS only.
  4. You added a second SPF record on the root domain. You don't need to: Resend's SPF lives on send. If your provider merged it into your root SPF record, undo that and add it on send as its own record.
  5. The DNS host isn't the one you edited. The company you bought the domain from isn't always the one serving its DNS. If your nameservers point to Cloudflare, records added at the registrar are ignored. The registrar's dashboard shows which nameservers are in use.
  6. It's just slow. Some older registrars take hours. Give it time, then use Restart verification.

Other problems after you're verified

Emails send but land in spam. Usually one of three things:

  • A new domain has no reputation yet. Send in small amounts for the first few weeks.
  • The content looks spammy: lots of links, ALL CAPS, "FREE!!!". mail-tester.com scores a test email for you.
  • There's no DMARC record. Add the one above.

Replies go nowhere. The from address doesn't have an inbox behind it. Set up forwarding (Cloudflare Email Routing is free) or use a real mailbox address.

DKIM was verified yesterday and isn't today. Someone switched the Cloudflare proxy on during an unrelated change, or a record was edited or deleted. Check the records against Resend's Records tab again.

"Too many DNS lookups" on SPF. This only affects SPF records that combine a lot of services on one name. Resend's sits on send by itself, so it rarely causes this. If you put it on the root alongside Google Workspace, Mailchimp and others, move it back to send.

You're done

Once the domain is green, it stays that way until someone changes the records, so this is a one-time job.

If you're doing this to send campaigns from Groundbase: connect the key under Settings → Email → Connect Resend, and Groundbase lists your verified domains to pick a From address.

If texting is the other half of your setup, the companion piece is A2P 10DLC registration. It's the same kind of one-time paperwork with a different provider.


Questions about this one? Email me directly: blog-resend@groundbasecrm.com. I read every one.

Fourteen days free, no card needed.

Start your 14-day trial →

More from the Pipeline

Guides

Moving your customer list from Excel to a CRM: import the spreadsheet, keep your own columns, merge the duplicates

You run the business alone, your customers live in an Excel sheet, and you want them in a CRM without retyp…

Guides

A ready-made Twilio softphone: make and take calls on your own Twilio number from the browser, no code (2026)

Twilio sells you a number and the parts to build a phone, not a phone. If you work alone and want to make a…

Comparisons

Groundbase vs Dubsado: a Dubsado alternative for a one-person business (2026)

Dubsado is a client management platform built around forms, contracts, a client portal and, on its Premier …

Comparisons

Groundbase vs HoneyBook: a HoneyBook alternative for a one-person business (2026)

HoneyBook is a client-flow platform with proposals, a client portal, payments it processes itself and a Cha…