Back to blog

08 Nov 2026

DMARC, SPF and DKIM for Business Domains: A Setup Guide

SPF, DKIM and DMARC are three DNS records that prove your emails really come from you. Together they stop attackers from sending email as your domain and help your real emails land in inboxes instead of spam.

Gmail and Yahoo now require authentication from bulk senders, and many Indian banks and enterprises expect it from suppliers. This guide shows what each record does, example values and a safe rollout plan.

DMARC SPF DKIM setup for business email domains
The Three Records

What SPF, DKIM and DMARC Do

Record What it does Simple analogy
SPF Lists the servers allowed to send email for your domain Guest list at the door
DKIM Adds a digital signature to each email Tamper-proof seal on the envelope
DMARC Tells receivers what to do if SPF or DKIM fails, and sends you reports Security guard's instructions
Step One

How to Set Up SPF

SPF is a TXT record on your domain. A typical example for Microsoft 365 looks like this:

v=spf1 include:spf.protection.outlook.com -all

  • Add every service that sends mail for you, such as your CRM or invoicing tool
  • Keep to one SPF record per domain
  • Stay under 10 DNS lookups, or SPF will fail
  • Use -all once you are confident the list is complete
Step Two

How to Set Up DKIM

DKIM keys are generated by your email provider. You publish the public key as a DNS record (often a CNAME or TXT under a selector such as selector1._domainkey).

  • In Microsoft 365 and Google Workspace, generate DKIM in the admin console
  • Publish the records your provider gives you
  • Turn on signing after the records are live
  • Set up DKIM for every third-party sender too
Step Three

How to Set Up DMARC Safely

DMARC is a TXT record at _dmarc.yourdomain. Start in monitoring mode, read reports, then tighten.

Stage Example record Goal
Monitor v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com See who sends as you
Quarantine v=DMARC1; p=quarantine; pct=25; rua=… Start filtering failures
Reject v=DMARC1; p=reject; rua=… Block spoofed email fully

Most companies move from none to reject in 6 to 12 weeks, after fixing every legitimate sender found in reports.

Do Not Forget

Protect Domains That Do Not Send Email

Attackers love spoofing unused domains because no one watches them. For every domain that never sends mail, publish:

  • SPF: v=spf1 -all
  • DMARC: v=DMARC1; p=reject
  • No MX record, or a null MX

This includes defensive and redirect domains. See defensive domain registration.

Troubleshooting

Common Email Authentication Errors

Problem Likely cause Fix
SPF permerror More than 10 DNS lookups Flatten or remove unused includes
DKIM fail Key not published or wrong selector Republish the key from your provider
DMARC fail for CRM mail Third-party sender not aligned Set up custom DKIM for that service
Mail goes to spam No DMARC or no DKIM Complete all three records
Two SPF records Added by different teams Merge into one record
Real-World Examples

Email Authentication Rollouts

Fintech Stops Spoofed Emails to Customers

Client: Digital lending fintech, Bengaluru

Challenge: Customers received fake loan emails from the company's real domain.

What we did: SPF and DKIM fixed for all senders, DMARC moved from none to reject over six weeks, reject records on unused domains.

Results:

  • Spoofed emails using the real domain dropped to zero
  • Better inbox placement for real customer emails
  • Monthly DMARC report review added

Manufacturer Fixes Invoice Emails Landing in Spam

Client: Engineering manufacturer, Hyderabad

Challenge: Invoices from the ERP system landed in customer spam folders.

What we did: Added the ERP sender to SPF, set up DKIM for it, published DMARC at none and then quarantine.

Results:

  • Invoice emails reached inboxes within days
  • Fewer payment delays from missed invoices
  • DMARC at reject after 10 weeks
Next Steps

Authenticate Every Domain You Own

SPF, DKIM and DMARC are free, take a few hours to set up and close one of the most abused gaps in business email. Start with monitoring, fix your senders and move to reject.

Need help? Flying Stars sets this up as part of email security, business email solutions and domain protection services.

Explore More

More Services

Explore Related Blogs



Get the latest news and
blog updates