Passer au contenu principal
Small business guide

SPF, DKIM, DMARC so your emails stop landing in spam

Three lines of text to add at your domain provider. They prove to your customers' mail services that your emails really come from you, and stop scammers from sending messages in your name.

What Gmail already requires

Since 1 February 2024, anyone sending to Gmail accounts must set up SPF or DKIM. Above 5,000 messages a day, SPF, DKIM and DMARC are all required. Google recommends all three for everyone.

Check my domain

Enter your domain name, without "www" or "https".

The check queries Google Public DNS (dns.google) straight from your browser. The domain you enter is not sent to this site.

All three in one sentence

SPF

The list of servers allowed to send email for your domain.

A message from a server not on the list is suspicious.

DKIM

A signature added to every message, checked by the recipient with a key published in your domain.

It proves the message comes from you and wasn't changed on the way.

DMARC

The instruction given to mail services for messages that fail both checks: deliver them, send them to spam or reject them.

Plus daily reports telling you who sends in your name.

Set them up in the right order

Everything happens at your domain provider (where you bought it), except the DKIM key, generated in the Google Admin console. If you bought the domain from a Google partner when signing up, SPF and DKIM may already be in place: run the check above first.

SPF

Day 1
  • List everything that sends email in your name: Google Workspace, but also the website contact form, the invoicing tool, the newsletter.
  • Add a TXT record on your domain (host "@") with the line produced by the generator below. If you only send with Google Workspace: v=spf1 include:_spf.google.com ~all.
  • One SPF record per domain, with 10 includes at most. If one already exists, extend it instead of adding a second.
  • Allow up to 48 hours for it to work.

DKIM

Day 1 too
  • Admin console, Apps, Google Workspace, Gmail, "Authenticate email" (super admin account). The key is only available 24 to 72 hours after Gmail is turned on.
  • Click "Generate new record": 2048 bits if your provider accepts it, selector "google". Don't click "Start authentication" yet.
  • At your provider, add a TXT record: host google._domainkey, value v=DKIM1; k=rsa; p=… copied from the console.
  • Wait up to 48 hours, go back to the console and click "Start authentication".
  • To check, email another Gmail account (not yourself), open the message, "Show original": the Authentication-Results line should say dkim=pass.

DMARC

48 hours later at the earliest
  • First create an address for the reports, such as a dmarc@ group: there can be many, and Google advises against your own inbox.
  • Add a TXT record with host _dmarc, in monitoring mode: v=DMARC1; p=none; rua=mailto:dmarc@your-domain.com. Nothing is blocked yet.
  • After at least a week of reports with no problems, move to quarantine for a small share of messages: v=DMARC1; p=quarantine; pct=10; rua=mailto:dmarc@your-domain.com (Google suggests 10% for a small organization).
  • Raise the percentage to 100, then, if you wish, move to p=reject: failing messages are then not delivered at all.

Generate your SPF record

Tick the services that send email with your address. Values come from the table in Google's help.

Generate your SPF record

Another service (website, invoicing…) sends for you too? Ask it for the include: value to add.

The most common mistakes

Two SPF records

Adding Google's next to your provider's instead of merging them. Google says it plainly: with several SPF records, your email can end up in spam.

Forgetting a sender

The website form or invoicing tool also sends "from" your domain. Missing from SPF, its messages get marked as spam.

Jumping straight to p=reject

Any gap in SPF then makes legitimate messages vanish without anyone noticing. Monitor for a week first.

Publishing the DKIM key without starting authentication

Until "Start authentication" is clicked in the console, Gmail doesn't sign your messages.

Testing by emailing yourself

Google says DKIM can't be verified that way: email another account.

Getting DMARC reports in your own inbox

They arrive daily and bury everything else. A dedicated group keeps them apart.

Information checked in November 2026 against Google's official help. Admin console menus change: follow the links below for exact paths.

FF

Fabrice Faucheux

Google Workspace, Apps Script & AI Expert (Brittany, France)

Author of free, practical guides on Google Workspace, Google Sheets, Apps Script and AI assistants (Gemini, Claude).

Updated on

AI & Google Workspace resource center

You might also like...

Continue exploring with these guides and tools.