Skip to content
Back to Blog
·9 min read·technology

DMARC, DKIM & SPF India: How to Set Up Email Authentication

Learn how to set up DMARC, DKIM and SPF for Indian businesses. Block email spoofing, prevent BEC fraud, and protect your domain with this step-by-step guide.

BR

Bachao.AI Research Team

Cybersecurity Research

Scan Your Attack Surface

Security exposure this creates

Unpatched vulnerabilities in your tech stack are the #1 entry point for breaches targeting Indian businesses. Here's what to watch.

Setting up DMARC, DKIM, and SPF is the single most effective step Indian businesses can take to stop email spoofing and Business Email Compromise fraud. All three are DNS-based email authentication protocols: SPF specifies which mail servers are authorised to send on your behalf; DKIM attaches a cryptographic signature to every outgoing message so recipients can verify it arrived unaltered; DMARC enforces a policy — monitor, quarantine, or reject — whenever either check fails, and delivers aggregate reports so you can see who is impersonating your domain. For Indian organisations, CERT-In classifies phishing as the highest-volume reported incident category each year — and without all three protocols correctly configured, anyone with a cheap VPS can send email that appears to originate from your domain, enabling large-scale phishing campaigns and targeted Business Email Compromise fraud.

Why Email Spoofing Is a Critical Threat for Indian Businesses

Email remains the most exploited attack vector across corporate cybersecurity incidents worldwide, and Indian organisations face acute exposure. The Reserve Bank of India has issued repeated advisories warning regulated entities about phishing and Business Email Compromise schemes where attackers impersonate CFOs, vendors, and partner banks to divert payments. CERT-In categorises phishing among the highest-volume incident types reported each year.

The underlying vulnerability is structural. The Simple Mail Transfer Protocol that moves email between servers has no built-in sender verification mechanism. An attacker can set the From address to accounts@yourcompany.in using a standard email client and a cheap VPS. Without SPF, DKIM, and DMARC in place, that email passes through most mail servers and lands in your vendor's or client's inbox looking completely legitimate — no malware required, no technical exploit, just a convincing sender address.

13,91,457Cybersecurity incidents reported in India (CERT-In Annual Report 2022)
$2.9BGlobal Business Email Compromise losses in a single year (FBI IC3 Annual Report 2023)
298,878Phishing complaints filed globally in 2023 — top category by volume (FBI IC3 Annual Report 2023)

NIST Special Publication 800-177r1 — Trustworthy Email — defines the technical requirements for SPF, DKIM, and DMARC deployment and serves as the authoritative reference for enterprise email authentication globally.

DMARC, DKIM and SPF Protocols Explained for Indian Businesses

SPF: Sender Policy Framework

SPF operates at the envelope level. When your mail server sends an email, the receiving server queries your domain's DNS for an SPF TXT record listing every IP address and sending service authorised to send on your behalf. If the connecting server's IP is absent from that list, the SPF check fails.

A minimal SPF record looks like this:

v=spf1 include:_spf.google.com include:sendgrid.net ip4:203.0.113.10 -all

The -all mechanism at the end is critical. It instructs receiving servers to hard-fail — reject or flag — any email not from an authorised source. The common alternatives ~all (soft fail) and ?all (neutral) pass the email onward regardless of the check result, removing almost all of SPF's protective value. Many Indian SMBs are left with ~all because hosting providers set it as a default they never revisit.

DKIM: DomainKeys Identified Mail

DKIM operates at the message level. Your mail server signs each outgoing email with a private cryptographic key. The corresponding public key is published as a TXT record in your DNS. When a receiving server processes your email, it retrieves the public key, verifies the signature, and confirms neither the header nor the body was modified in transit.

DKIM addresses a category of attack that SPF cannot stop: an attacker who routes email through one of your authorised sending platforms — by compromising a shared marketing tool account, for example — passes SPF but will fail DKIM if the private signing key is not also compromised. The two protocols are complementary, not redundant.

DMARC: Domain-based Message Authentication, Reporting and Conformance

DMARC is the policy layer that converts SPF and DKIM results into enforceable action. A DMARC record published in DNS tells receiving servers what to do when an email fails alignment checks, and where to deliver aggregate XML reports. The three policy values are:

    1. p=none — Take no action on failures; collect reports only. This is monitoring mode and is the correct starting point.
    2. p=quarantine — Route failing emails to the recipient's spam or junk folder.
    3. p=reject — Block failing emails at the gateway. They never reach the inbox.
Without DMARC, SPF and DKIM results are informational only — most receiving servers note the failure but deliver the email anyway. DMARC is what transforms authentication failures into actual blocking.

How Email Authentication Works End-to-End

graph TD A[Email Sent from Sender Domain]:::normal --> B[Receiving Mail Server]:::normal B --> C{SPF DNS Lookup}:::normal C -->|Pass| D{DKIM Signature Check}:::normal C -->|Fail| E[SPF Fail Recorded]:::danger D -->|Pass| F{DMARC Policy Applied}:::normal D -->|Fail| G[DKIM Fail Recorded]:::danger E --> F G --> F F -->|p=none| H[Log and Monitor Only]:::normal F -->|p=quarantine| I[Moved to Spam Folder]:::danger F -->|p=reject| J[Email Blocked at Gateway]:::danger F -->|Both Pass| K[Delivered to Inbox]:::success classDef normal fill:#1e3a5f,stroke:#3B82F6,color:#e2e8f0 classDef danger fill:#5f1e1e,stroke:#EF4444,color:#e2e8f0 classDef success fill:#1e3d2f,stroke:#10B981,color:#e2e8f0

The diagram makes clear why all three protocols are necessary. SPF and DKIM catch different failure modes. DMARC applies the action and aggregates the reporting. An email that fails either SPF or DKIM alignment check still reaches the DMARC policy decision node — the outcome depends entirely on which policy level you have published.

Know your vulnerabilities before attackers do

Run a free VAPT scan — takes 5 minutes, no signup required.

Book Your Free Scan

The Email Attack Landscape

Understanding which threats your authentication stack actually neutralises helps prioritise configuration effort. Business Email Compromise is the highest-value attack category for adversaries: while phishing emails are sent in bulk to thousands of recipients, a targeted BEC email impersonating a director or CFO requires no malware and no technical exploit — just a convincing sender address and a plausible payment instruction. SPF, DKIM, and DMARC at p=reject directly block both at-scale phishing and BEC emails that impersonate your exact domain.

pie title Email-Based Attack Type Distribution "Phishing and Spoofing" : 55 "Business Email Compromise" : 20 "Malware Delivery via Email" : 15 "Credential Harvesting" : 10

Source: Approximate distribution by incident volume — FBI IC3 Annual Report 2023 / Verizon DBIR 2024

Want to know whether your domain's SPF, DKIM, and DMARC records are correctly configured right now? Get your free security scan on Bachao.AI — the automated DNS assessment flags misconfigurations and missing records in under a minute.

One gap to note: SPF, DKIM, and DMARC protect your domain. They do not defend against lookalike domain attacks, where an attacker registers yourcompany-in.com or yourcompany.co and sends from there. Those threats require a separate layer of domain monitoring and brand protection.

How to Set Up DMARC, DKIM and SPF in India: Step-by-Step Configuration

All three records are TXT entries added to your domain's DNS zone. The table below shows what each requires, with the recommended configuration and the risk profile of common misconfigurations.

ProtocolDNS Entry NameExample Record ValueKey SettingRisk If Misconfigured
SPF@ root domainv=spf1 include:_spf.google.com -allUse -all not ~allSoft fail lets spoofed emails pass
DKIMselector._domainkeyv=DKIM1; k=rsa; p=<public-key>2048-bit minimum key lengthWeak keys are vulnerable; DKIM failure = no integrity guarantee
DMARC_dmarcv=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.inProgress from p=none to p=rejectJumping to reject without testing breaks legitimate mail flows
⚠️
WARNING
Never deploy DMARC at p=reject without first running p=none for at least two to four weeks. In that period, aggregate reports reveal every legitimate sending source — marketing platforms, CRMs, ERP invoicing modules, support ticket systems — that you must authorise in SPF and sign with DKIM before tightening enforcement. Skipping this step causes legitimate transactional and operational emails to be blocked by recipient mail servers, with no bounce notification back to your team.

The recommended rollout sequence:

  1. Audit every service that sends email using your domain
  2. Publish SPF with all authorised sender IPs and includes, ending in -all
  3. Enable DKIM signing in each sending platform; publish public keys to DNS
  4. Publish DMARC at p=none with a rua (aggregate report) address you monitor
  5. Analyse reports for two to four weeks using any DMARC report parser
  6. Fix gaps — add missing senders to SPF, enable DKIM on all platforms
  7. Advance to p=quarantine and monitor for two more weeks
  8. Advance to p=reject — full enforcement achieved

Common DMARC, DKIM and SPF Mistakes Indian SMBs Make

Multiple SPF records on one domain. DNS allows only one SPF TXT record per domain name. If your hosting provider created one and you added another, behaviour is undefined — most resolvers evaluate only one, often the wrong one. Merge all include: directives into a single record.

Exceeding the SPF lookup limit. The SPF specification caps DNS lookups at ten per evaluation. Organisations using multiple SaaS email services frequently breach this limit, causing SPF to return a permerror — which DMARC treats as a failure equivalent to a hard fail. SPF flattening tools resolve this by collapsing nested lookups into direct IP ranges.

Neglecting DKIM key rotation. Once published, DKIM signing keys are frequently left unchanged indefinitely. Long-lived private keys accumulate exposure risk. Rotate DKIM keys at least annually, and immediately if a sending platform account is compromised.

Ignoring DMARC aggregate reports. Many teams set the rua tag, receive the XML reports, and never parse them. Unmonitored DMARC reports mean misconfigurations and active spoofing attempts go undetected for months. Treat DMARC reports as a continuous feed — even a weekly review reveals trends that require action.

💡
TIP
When advancing from p=none to p=quarantine, add pct=10 to your DMARC record initially. This applies quarantine to only 10% of failing emails, giving you a controlled rollout that limits the impact of any residual misconfiguration. Monitor reports for a week, increase pct incrementally, and remove it entirely once aggregate reports confirm clean alignment across all sending sources.

Closing the Gaps DMARC Reports Surface

DMARC reports frequently reveal that a third-party SaaS tool — an invoice platform, a support helpdesk, an HR onboarding system — is sending email from your domain without DKIM signatures or from an IP not in your SPF record. The resolution is usually a single vendor-side configuration toggle plus one DNS entry. Add their DKIM public key and their sending IP ranges, and the alignment failure disappears from your next report cycle.

For Indian businesses that process payments or hold customer data, email authentication also intersects directly with compliance obligations. Phishing campaigns that impersonate your brand and harvest customer credentials can trigger data-breach notification requirements under the DPDP Act. A fully enforced DMARC policy materially reduces the likelihood of your domain being weaponised in such campaigns.

Running a free VAPT scan through Bachao.AI — built by Dhisattva AI Pvt Ltd, a DPIIT Recognised Startup — includes automated DNS security checks: SPF, DKIM, and DMARC configuration are evaluated as part of the assessment alongside TLS settings, exposed services, and known vulnerability findings. Browse the Bachao.AI blog for additional guides on securing your infrastructure.

🎯Key Takeaway
SPF, DKIM, and DMARC are the minimum bar for email domain integrity. Without DMARC at p=reject, your domain is an open template for impersonation — anyone can send email that appears to come from you. Start at p=none to collect reporting visibility, fix every misaligned sending source that surfaces in those reports, then advance through p=quarantine to p=reject. This systematic sequence eliminates the largest class of email-based fraud targeting your brand, your vendors, and your customers.

Frequently Asked Questions

What is the difference between SPF, DKIM, and DMARC?
SPF validates which mail servers are authorised to send email from your domain by checking DNS records against the sending server's IP address. DKIM adds a cryptographic signature to each outgoing email so recipients can confirm the message was not altered in transit. DMARC is the policy enforcement layer that defines what receiving servers must do — monitor, quarantine, or reject — when SPF or DKIM checks fail, and enables aggregate reporting so you can track who is impersonating your domain.
Can Indian companies configure SPF and DKIM without setting up DMARC?
Yes, but the protection is incomplete. Without DMARC, receiving mail servers see the SPF and DKIM results but apply no enforceable action when checks fail — most will still deliver the email. DMARC is what converts authentication failures into actual blocking, and it is the only mechanism that provides reporting to show you when your domain is being spoofed. For Indian businesses already targeted by BEC schemes flagged by RBI advisories, SPF and DKIM without DMARC provide minimal real-world protection.
Does DMARC at p=reject stop all phishing attacks targeting Indian businesses?
DMARC at p=reject blocks phishing and BEC emails that use your exact domain in the From address — the most direct form of impersonation, and the attack type most commonly reported to CERT-In. It does not stop lookalike domain attacks where an attacker registers a visually similar domain and sends from there. Those require domain monitoring services and user awareness training. DMARC is a necessary foundation, not a complete phishing defence on its own.
How long does it take to implement DMARC, DKIM and SPF in India?
An Indian business using one or two email providers can progress from no DMARC to full p=reject enforcement in three to six weeks. The timeline is driven by the reporting cycle: DMARC aggregate reports arrive daily, and you need at least two weeks of clean data at each policy level before advancing. Organisations with many third-party SaaS email senders — common in Indian mid-market companies using a mix of GSuite, Zoho, and local ERPs — should allow eight to twelve weeks to identify and authorise every legitimate sending source.
Is DKIM and SPF automatically set up when using Google Workspace for Indian domains?
Partially. Google Workspace enables DKIM signing for your domain, but Indian businesses must manually generate the signing key within the Admin Console and publish the corresponding public key TXT record to their DNS registrar (GoDaddy, BigRock, etc.). Google does not do this automatically. SPF requires you to add a TXT record that includes Google's authorised sending ranges. DMARC is entirely your responsibility to publish and manage, regardless of which email provider you use.
Is DMARC required for DPDP Act compliance in India?
The DPDP Act 2023 does not name DMARC explicitly, but it requires data fiduciaries to implement reasonable security safeguards to protect personal data. Phishing attacks that use a spoofed version of your domain to harvest customer credentials can trigger breach notification obligations and regulatory scrutiny. Implementing DMARC at p=reject is a recognised preventive control that reduces this risk and demonstrates due diligence if a breach investigation occurs.
BR

Bachao.AI Research Team

Cybersecurity Research

AI-powered security research and threat intelligence from the Bachao.AI team. Covering the latest vulnerabilities, CVEs, and cybersecurity developments affecting Indian businesses.

Get cybersecurity insights for Indian SMBs

Weekly vulnerability alerts, DPDP compliance tips, and security guides. No spam — unsubscribe anytime.

We respect your privacy. Your email is never shared.

Find out if you're exposed to this class of threat

Free automated scan — risk score in under 2 hours. No credit card required.

Scan Your Attack Surface
Find your vulnerabilitiesStart free scan →