How to set up SPF, DKIM and DMARC for your business email

DMARC setup is the last of three DNS records that prove email from your domain is genuine. SPF lists the servers allowed to send as your domain, DKIM adds a signature to each message, and DMARC tells receiving servers what to do with mail that fails those checks and where to send reports. Publish SPF and DKIM first, wait 48 hours, then add DMARC with a monitoring policy (p=none) and tighten it once the reports show that all your real mail passes.

Why Gmail and other mailbox providers check these records

Google’s email sender guidelines say that since 1 February 2024 everyone who sends to Gmail accounts must set up SPF or DKIM. Senders of more than 5,000 messages a day to Gmail accounts must set up SPF, DKIM and DMARC (the DMARC policy can be none), make the From: domain align with the SPF or DKIM domain, and offer one-click unsubscribe on marketing mail. The same page asks senders to keep the spam rate shown in Postmaster Tools below 0.10% and never reach 0.30%. Google says unauthenticated messages “might be marked as spam or rejected”.

For a clinic sending appointment reminders or a D2C store sending order confirmations, these records decide whether mail reaches the inbox.

Step 1: publish one SPF record

SPF is a TXT record on the root of your domain (host @). It must name every service that sends mail as your domain: mailbox provider, billing software, newsletter tool, website form. Examples for example.com:

  • With Google Workspace only, use v=spf1 include:_spf.google.com ~all.
  • With Microsoft 365 only, use v=spf1 include:spf.protection.outlook.com -all.
  • With Google Workspace plus a GoDaddy (secureserver.net) service, use v=spf1 include:_spf.google.com include:secureserver.net ~all.

Microsoft Learn sets two hard limits. A domain or subdomain can have only one SPF record, because two records make SPF return a permanent error. And if checking the record needs more than 10 DNS lookups, SPF fails, with each include: costing at least one lookup. Google says a new SPF record can take up to 48 hours to start working.

The two vendors disagree on the ending. Google recommends ~all (soft fail). Microsoft recommends -all (hard fail) for Microsoft 365 domains, because it also recommends DKIM and DMARC. In our view, follow the advice of the provider that hosts your mailboxes.

Step 2: turn on DKIM signing

With DKIM, your mail provider signs outgoing messages and you publish the matching public value in DNS. In Google Workspace you generate it on the Authenticate email page of the Admin console. The default selector is google, so the TXT record name is google._domainkey and its value starts v=DKIM1; k=rsa; p=. Choose 2048 bits if your DNS host accepts records that long; Gmail needs at least 1024 bits. Google says it can take up to 48 hours after you add the record before you can click Start authentication.

Other services that send as your domain (CRM, invoicing, email marketing) have their own DKIM steps; Google’s DMARC page tells you to confirm these with each provider first.

Step 3: publish DMARC in monitoring mode

The DMARC record is a TXT record at _dmarc.example.com. A first record looks like this:

v=DMARC1; p=none; rua=mailto:[email protected]

p=none asks receivers to take no action and only report. Send rua reports to a dedicated mailbox or group, as Google advises, because the volume can be high. A message passes DMARC when it passes SPF or DKIM and that domain matches the From: domain. Relaxed matching is the default, and Google says it usually gives enough protection; strict matching (adkim=s, aspf=s) can send mail from your subdomains to spam.

Step 4: move from none to quarantine to reject

  1. Read the reports until every legitimate sender (mail provider, billing tool, CRM, website) shows as passing.
  2. Fix each failing sender by adding it to SPF or turning on DKIM with that provider.
  3. Change the policy to v=DMARC1; p=quarantine; rua=mailto:[email protected], so failing mail goes to spam.
  4. When genuine mail is no longer affected, change it to p=reject, so failing mail is refused.

Google and Microsoft still describe a pct tag for applying the policy to a share of mail. RFC 9989 (May 2026), which replaces RFC 7489 (March 2015), removes it because receivers applied values other than 0 and 100 inconsistently. In our view, move through none, quarantine and reject in steps rather than relying on pct=25 or pct=50.

For domains you own but never send mail from, Microsoft suggests v=spf1 -all and v=DMARC1; p=reject;.

Frequently asked questions

Do I need to buy a DMARC solution?

Not for the records. SPF, DKIM and DMARC are DNS TXT records you add at your domain host at no cost. A paid report service helps when many systems send mail for you and the reports get hard to read.

Does DMARC stop every fake email?

No. RFC 9989 says DMARC deals with exact-domain spoofing. It does not cover lookalike domains (such as examp1e.com) or a fake display name in front of a real address.

How long does the whole setup take?

Google says SPF and DKIM can each take up to 48 hours to start working, and asks you to let them authenticate for 48 hours before turning on DMARC.

Do subdomains need their own records?

Each sending subdomain needs its own SPF record. For DMARC, subdomains inherit the parent domain’s policy unless you set a different one with the sp tag.

If you would like your records and sending services reviewed, see our cybersecurity services and network security pages.

Sources, checked 9 November 2026: Google, Email sender guidelines; Google Workspace Help, Set up SPF; Google Workspace Help, Set up DKIM; Google Workspace Help, Set up DMARC; Microsoft Learn, Set up SPF to identify valid email sources; Microsoft Learn, Set up DMARC to validate the From address domain; IETF, RFC 9989 (DMARC, May 2026); IETF, RFC 7489 (DMARC, March 2015).

Need help with this?

Aryan Tech World builds and runs cloud, DevOps, security and WhatsApp automation projects for businesses in India. Tell us what you need through our contact form.

Talk to us
Previous Post
Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *

aryan tech world icon dark | Aryan Tech World

Aryan Tech World

IT company in New Delhi building AI agents, websites, custom software and secure cloud infrastructure for businesses across India.

Latest Posts

Need IT or Software Help?

From AI and custom software to cloud and cybersecurity, talk to our team about your project.

Need IT, software or AI help for your business?

Aryan Tech World Private Limited
H-49-A, Africa Avenue Marg, Mohammadpur,
Rama Krishna Puram, New Delhi, Delhi 110066, India
Email: [email protected]
Find us on Google Maps

© 2026 Aryan Tech World Private Limited All Rights Reserved.