Skip to article
XUNL / FIELD NOTES

SPF, DKIM and DMARC Setup: A Checklist for Business Email That Lands in Spam

When quotes and sales emails land in a customer's spam folder, domain authentication is usually the cause. Check MX, SPF, DKIM and DMARC in order, and meet Gmail's current sender requirements.

Updated

阅读中文版 ↗
Email authentication DNS records: SPF, DKIM, DMARC and MX

Open the tools in this guide

Email health checkOpen tool →SPF record generatorOpen tool →DMARC record generatorOpen tool →MX lookupOpen tool →Blacklist checkOpen tool →DNS lookupOpen tool →Inquiry assistantOpen tool →

What each record does

RecordWhere it livesWhat it does
SPFTXT record at the domain root, starting v=spf1Lists the servers allowed to send mail for the domain
DKIMTXT record at selector._domainkey.yourdomainPublishes the public key that verifies each message's signature
DMARCTXT record at _dmarc.yourdomainTells receivers what to do when SPF/DKIM fail, and sends you reports

Together they let a receiving server confirm that a message really comes from your company. Start with the email health check: enter your domain to see MX, SPF, DKIM, DMARC and blocklist status in one report, then fix issues in this order.

Step 1: MX

MX records decide where mail sent to you is delivered. After switching providers, leftover MX records can silently lose part of your inbound mail. Use the DNS lookup with type MX to see what is live.

Step 2: SPF

  • Publish exactly one v=spf1 record. Multiple SPF records produce a permerror, which receivers treat as a failure. Merge every sending service into one record.
  • Stay within 10 DNS lookups. RFC 7208 limits include, a, mx, ptr, exists and redirect, nested ones included, to 10 per evaluation. CRMs, marketing platforms and your mailbox provider each add includes, so this limit is easy to hit.
  • End with ~all (softfail) while you verify your senders, then move to -all.

Step 3: DKIM

Your mail provider generates the DKIM key. Find the DKIM or domain signing setting in its admin console, add the selector and public key it shows to DNS, then switch signing on in the console. Publishing the DNS record alone does not start signing. Google requires keys of at least 1024 bits and recommends 2048.

Step 4: DMARC

Start in monitoring mode and tighten gradually:

  1. v=DMARC1; p=none; rua=mailto:dmarc@yourdomain: collect reports without affecting delivery.
  2. Read the reports for a few weeks. Make sure every legitimate source (website forms, CRM, marketing tools) passes SPF or DKIM aligned with your From domain.
  3. Move to p=quarantine, then p=reject, so others cannot send phishing mail in your name.

Gmail's sender requirements

Since February 2024 Google enforces sender guidelines for mail to personal Gmail accounts:

  • All senders: set up SPF or DKIM, keep valid forward and reverse DNS for sending IPs, and keep the user-reported spam rate below 0.3%.
  • Senders of more than 5,000 messages a day to Gmail: set up SPF, DKIM and DMARC (at least p=none), align the From domain with SPF or DKIM, and offer one-click unsubscribe on marketing mail.

Even at low volume, meeting the bulk-sender bar is worth it: many corporate mail gateways apply similar checks.

After the fix

  • DNS changes are cached, so re-test after the TTL has passed.
  • Re-check SPF and DKIM whenever you add a sending channel.
  • When an inquiry arrives, the AI inquiry analysis helps you sort out what the buyer needs before you reply from your authenticated domain.

Generate the records instead of typing them

The SPF record generator builds the record from the services that send mail as your domain. Tick your mailbox provider (for example Google Workspace or Microsoft 365), any marketing or transactional service (for example Amazon SES or Mailchimp) and helpdesk or CRM tools, and it adds the matching include: entries. Enter your domain to import the current record and count its DNS lookups; SPF allows at most 10 (RFC 7208).

SPF record generator: services grouped as mailbox providers, marketing and transactional, and helpdesk and CRM, with Google Workspace selected and its include shown

Related checks:

Common questions

How many include entries can an SPF record have?

SPF allows at most 10 DNS lookups in total, and each include can use more than one. The SPF record generator imports your current record and counts the lookups.

Should DMARC start at p=reject?

Usually not. Start with p=none and a reporting address, read the reports, fix any legitimate senders that fail, then move to quarantine and reject.

Sources

TRY IT YOURSELF

Tools for your next step

Email health check

Open tool →
SPF record generator

Open tool →
DMARC record generator

Open tool →
MX lookup

Open tool →
Blacklist check

Open tool →
DNS lookup

Open tool →
Inquiry assistant

Open tool →
YOUR NEXT STEP

Put this guide to work for your business

Start free tools with Google or an email code. Create a company and compare Pro plans when you need monitoring and team permissions.

Personal accounts use Free limits. A separate new company receives a 7-day Pro trial, excluding paid monthly credits.

Find your toolkit by role →

← Back to all articles

New tutorial updates: only with new articles, at most once every seven days →