How to set up SPF, DKIM and DMARC for MailerSend

The records MailerSend needs, how to merge SPF without breaking it, and how to get your domain verified.

This page includes an affiliate link to an alternative provider. If you sign up through it, Rigcheck may earn a commission at no cost to you. We don't earn from MailerSend, and that doesn't change how this guide covers it. How we handle this.

Before MailerSend will send from your domain, you have to verify it with a handful of DNS records. Unlike some providers, MailerSend asks you to add it to your main SPF record, so the most common way to get this wrong is ending up with two SPF records. This guide covers every record, including how to merge SPF safely.

Setup takes about 15 minutes of work, plus waiting for DNS.

See what's already in place. Rigcheck shows your SPF, DKIM and DMARC records, flags duplicate SPF records, and detects MailerSend once it's set up.

Before you start

  • A MailerSend account. Until your domain is verified, MailerSend only lets you send test emails.
  • Access to your DNS host, wherever your domain's DNS records are managed (Cloudflare, GoDaddy, Namecheap, Route 53 and so on). This isn't always where you bought the domain. Rigcheck shows your DNS host at the top of your results.
  • A decision on which domain to send from. Sending app email from a subdomain like mail.yourdomain.com keeps its reputation separate from your team's everyday email, and gives it its own SPF record, so it can't push your main record over its limits.

Step 1: Add your domain in MailerSend

  1. In MailerSend, go to Email → Domains and click Add domain.
  2. Enter the domain you'll send from and click Add domain.
  3. MailerSend offers to connect your domain automatically by signing in to your DNS host. If your host is supported, this is the easiest route. To add the records yourself, close that pop-up and follow the steps below.

If someone else manages your DNS, the domain page has a Forward instructions option that emails them the records.

Step 2: Add the DNS records

MailerSend shows four records. Tap any value in MailerSend to copy it.

RecordTypeNameWhat it does
SPFTXT@Authorizes MailerSend to send for your domain
DKIM 1CNAMEFrom MailerSend (uses ms1)Points to your signing key
DKIM 2CNAMEFrom MailerSend (uses ms2)A second key, used for stronger 2048-bit signing and rotation
Return-PathCNAMEmtaPoints to mailersend.net and puts bounces on your domain, so SPF lines up for DMARC

Copy the DKIM names and values from MailerSend rather than typing them. They're specific to your domain, they're case-sensitive, and verification fails unless both DKIM records are in place.

Merging SPF with your existing record

A domain can only have one SPF record. If you add MailerSend's as a second TXT record starting with v=spf1, SPF fails for all of your email, not just MailerSend's.

MailerSend's SPF value is usually already merged with your existing record, so the safe move is to edit your current SPF record and replace its value rather than adding a new one. Before you save, compare the two: every include: from your old record should still be there. For example, a Google Workspace domain ends up with something like:

Host@
TypeTXT
Valuev=spf1 include:_spf.google.com include:_spf.mailersend.net ~all

Use the exact value MailerSend shows you. Each include uses part of SPF's 10-lookup limit, so if your record is already crowded, read SPF too many DNS lookups first, or send from a subdomain, which gets its own SPF record.

Getting the names right

Most DNS hosts add your domain automatically, so enter names in the short form MailerSend shows, like mta. Typing the full name can produce mta.yourdomain.com.yourdomain.com, which silently fails. Also watch for hosts that add your domain to the end of CNAME values: the Return-Path value should be exactly mailersend.net.

If your DNS is on Cloudflare

Set all three CNAME records to DNS only (grey cloud), not proxied. A proxied record hides the CNAME, and MailerSend can't verify it.

Optional: custom tracking domain

If you track opens and clicks, you can turn on Custom DNS records for tracking on the domain page. It adds one more CNAME, by default email.yourdomain.com, so tracking links use your domain instead of MailerSend's.

Step 3: DMARC

MailerSend doesn't require DMARC to verify your domain, but Gmail, Yahoo and Microsoft expect it from anyone sending in volume. If you don't have one, add a TXT record named _dmarc:

Host_dmarc
TypeTXT
Valuev=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

If you already have a DMARC record, leave it. A domain can only have one, and it covers mail sent through MailerSend too. Start with p=none, then tighten it once your reports look clean: DMARC p=none vs quarantine vs reject walks through it.

Step 4: Verify

Back in MailerSend, check I have added DNS records and click Finish verification. Verification usually completes within minutes, but can take up to 48 hours. To check again sooner, click Re-check now on the domain's DNS page.

If a record stays unverified for more than a few hours, see DNS changes not showing up to work out whether it's a caching delay or the record itself.

Step 5: Confirm it works

  1. Run your domain through Rigcheck. SPF should pass with a single record, DKIM should show keys for ms1 and ms2, and DMARC should be in place.
  2. Send a test message through MailerSend to a personal Gmail address. Open it, tap the three-dot menu and choose Show original. You should see PASS next to SPF, DKIM and DMARC, with your own domain listed for each.

Comparing providers?

Check your MailerSend setup. See which records pass and get the exact fix for anything missing.

Check my setup

Browse all guides