SPF, DKIM and DMARC Setup: A Step-by-Step Guide for Indian Businesses
To authenticate your email domain, you add three DNS records: an SPF record that lists who may send for you, a DKIM record that holds your public signing key, and a DMARC record that sets your policy and reporting address. Most businesses can set all three up in under an hour. This guide explains each record in plain language and shows the steps in order.
Why authentication matters now
Gmail, Yahoo and Outlook all require bulk senders to pass SPF, DKIM and DMARC, and Outlook now rejects high-volume mail that fails. Even if you send less, authenticated mail is far more likely to reach the inbox. See our guide to bulk sender requirements for the full picture.
Before you start
- Login access to the DNS settings of your domain, usually at your domain registrar or hosting provider.
- A list of every service that sends email using your domain: your email platform, Google Workspace or Microsoft 365, your website, CRM and billing software.
- The SPF and DKIM values from your email platform. In GO MAILBOX these appear on the domain authentication screen.
Step 1: Set up SPF
SPF (Sender Policy Framework) is a TXT record on your domain that lists the servers allowed to send email for it. A typical record looks like this:
v=spf1 include:_spf.google.com include:your-email-platform.example ~all
- v=spf1 marks the record as SPF.
- Each include adds a sending service. Use the exact value your provider gives you.
- ~all asks receivers to treat other senders with suspicion. -all is stricter.
Common mistakes: publishing two SPF records (you must have only one, so merge them), and going over the limit of 10 DNS lookups by adding too many includes.
Step 2: Set up DKIM
DKIM (DomainKeys Identified Mail) adds a digital signature to every email. Your email platform signs the message with a private key, and receivers check it with the public key you publish in DNS.
- Generate a DKIM key in your email platform. In GO MAILBOX, keys are generated for you automatically.
- Copy the record name, often called the selector, such as mail._domainkey.yourbrand.in.
- Add it in DNS as a TXT or CNAME record, exactly as shown.
- Return to your platform and verify.
Every service that sends for your domain should sign with its own DKIM key on your domain. Signing with the provider’s shared domain does not give you DMARC alignment.
Step 3: Set up DMARC
DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when a message fails SPF and DKIM, and asks them to send you reports. Add a TXT record at _dmarc.yourbrand.in:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourbrand.in; adkim=r; aspf=r
- p=none means monitor only. It meets the minimum requirement from Gmail, Yahoo and Outlook.
- rua is where aggregate reports are sent. Use a mailbox you check, or a DMARC reporting tool.
- adkim and aspf set alignment. Relaxed (r) is the usual starting point.
Step 4: Move from monitoring to enforcement
Do not jump straight to a strict policy. Run p=none for a few weeks and read the reports. They show every service sending as your domain, including ones you may have forgotten, such as an old website form. Once all legitimate mail passes, move to p=quarantine, then to p=reject. This blocks people from spoofing your domain in phishing emails, which protects your customers and your brand.
Step 5: Verify and test
- Use your email platform’s verify button after DNS changes. Records can take from a few minutes to a few hours to update.
- Send a test email to a Gmail address, open it, choose “Show original” and check that SPF, DKIM and DMARC all show PASS.
- Set up Google Postmaster Tools to track your domain reputation and spam rate.
Quick troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| SPF permerror | Two SPF records or more than 10 lookups | Merge into one record, remove unused includes |
| DKIM fails | Record copied with extra spaces or quotes split wrongly | Paste the value again exactly as provided |
| DMARC fails though SPF passes | SPF passes for the provider’s domain, not yours | Make sure DKIM signs with your own domain |
| Changes not showing | DNS not updated yet | Wait and check again, or lower the TTL |
After authentication: warm up and keep lists clean
Authentication proves who you are. Reputation decides whether you are trusted. If the domain is new to sending, ramp up volume gradually over about two weeks, and keep removing bounces and unsubscribes. GO MAILBOX does both automatically. Read more about deliverability and warmup.
Frequently asked questions
Can I have more than one SPF record?
No. A domain must have only one SPF record. If several services need to send for you, add them all as includes in a single record.
Should I use a subdomain for bulk email?
Many businesses send marketing mail from a subdomain such as mail.yourbrand.in. It keeps marketing reputation separate from your everyday business email. Authenticate the subdomain the same way.
Does DMARC stop my emails going to spam?
DMARC on its own does not guarantee inbox placement, but missing or failing DMARC now leads to rejection or filtering at major providers. It is a requirement, not a bonus.