Skip to the guide

Fix SPF, DKIM and DMARC

Three DNS records tell inboxes your emails are really from you. How to read the checks, and the exact records for Google, Microsoft or Zoho.

Thomas Kanze, founder of GrovikoUpdated

5 steps · 7 min

What you'll see

  • What each check means and its state
  • The records to copy, for Google Workspace, Microsoft 365 or Zoho Mail
  • How to merge two SPF lines into the one a domain may have
Check your domain first, freeType your domain and see in a few seconds which of SPF, DKIM, DMARC and your mail servers pass, with the exact record for each one that doesn't. No sign-up.

Without these records, more of your emails land in spam, and some never arrive. With no SPF record, or two of them, new first emails wait until it's fixed: the card says New emails are on hold until your domain is fixed, and follow-ups and replies carry on. Your domain's DNS lives where you bought the domain, or wherever you moved it.

What each record does

  • SPF: Says which servers may send for your domain.
  • DKIM: Signs your emails so inboxes can check they came from you.
  • DMARC: Tells inboxes what to do with emails that fail SPF or DKIM.

The records for your email host

Pick your email host. Each value comes from the host's own help pages; where the host makes a value for your account alone, the row says where to copy it from.

MXHost / name@Value
smtp.google.com
Priority 1. Accounts made before 2023 may still use the older aspmx records: both work.
TXTHost / name@Value
v=spf1 include:_spf.google.com ~all
SPF. Google's page shows this exact line.
TXTHost / namegoogle._domainkeyValue
v=DKIM1; k=rsa; p=…In your account
DKIM. Make it in the Admin console: Apps › Google Workspace › Gmail › Authenticate email, 2048-bit. Add it, then click Start authentication.
TXTHost / name_dmarcValue
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
DMARC. Change the address to one you read.
  • Wait first. Google says the DKIM key can take 24 to 72 hours to appear after you turn on Gmail, and up to 48 hours to start working.
  • One SPF line. Already have SPF? Add include:_spf.google.com to it instead of adding a second record.

Values from Google Workspace's own help pages: MX (opens in a new tab), SPF (opens in a new tab), DKIM (opens in a new tab), DMARC (opens in a new tab). Checked .

  1. Read the checks

    Each mailbox row in Settings, Mailboxes starts with one answer, the same words Send, the launch sheet and Home use: Ready to send, Ready to send · 1 optional improvement, Your domain needs a look. Emails may land in spam. or New emails are on hold until your domain is fixed, with one sentence on why and what to do.

    Under Checks and details, each check in plain words: Replies reach you (MX), Inboxes know who may send for you (SPF), Your emails are signed (DKIM, optional), Fakes of your domain get caught (DMARC), then the spam lists and the domain's age. When a lookup itself failed, the row says so and no record is offered, so you never add a second one by mistake.

    Press Show me how for the steps, with the records to copy for your email host (Google Workspace, Microsoft 365 or Zoho Mail; for another host, its own help pages give the values).

    A new Google mailbox on hold: its checks unfolded, SPF and DMARC in plain words, and the button that opens the records to add
    1. 1. SPF, in plain words
    2. 2. DMARC, in plain words
    3. 3. The steps and records to add
  2. Add or merge SPF

    With no SPF record, add a TXT record named @ with your host's line from the table above. For another host, its help pages give the include.

    A domain can have only one SPF record: with two, inboxes can't pick one and SPF fails for both. If you already have one, say for a newsletter tool, keep one line with every include from each, your email host's added before the ending, then delete the rest. Groviko's card offers this merged line when it finds more than one, and if your one record leaves your email host out, the line with it added.

    For example, a domain with one SPF line for Google Workspace and a second for a newsletter tool keeps only the line below: both includes, one ending.

    • The one TXT record named @ to keep

      v=spf1 include:_spf.google.com include:mail.newsletter.example ~all

    Tip: An SPF line may use at most 10 DNS lookups, and each include counts. Remove the includes of services you no longer use.

  3. Add DMARC

    Add a TXT record named _dmarc. p=none only watches, so no email gets blocked. If you already have one, edit it instead of adding a second.

    The mailbox card offers the shortest form, with only p=none. Add rua= with an address you read, as below, and providers send you a daily report of who sends as your domain.

    • DMARC, a TXT record named _dmarc (change the address)

      v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
  4. Turn on DKIM

    Your host makes the key, then you add it to your DNS: the table above says where for each host. The card links to Google's DKIM setup (opens in a new tab), Microsoft's (opens in a new tab) or Zoho's (opens in a new tab).

    Groviko looks for the key under common names only, so a DKIM that is set up under another name can read as not found. That can be fine.

  5. Check again

    DNS changes can take up to 48 hours to show. Press Check again in the steps: Groviko checks every 10 minutes for the next hour and emails you once it passes. It also checks every mailbox's domain once a day on its own. Or run the free sending-domain check again.