Defense

Email Authentication (SPF, DKIM, DMARC)

The set of DNS-based standards, SPF, DKIM, and DMARC, that let a receiving mail server verify an email genuinely came from the domain it claims and decide what to do if it did not.

Definition

Email authentication is the combination of three DNS-published standards, SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting and Conformance), that together let a receiving mail server verify a message genuinely came from the domain it claims to be from. SPF and DKIM each provide a technical signal, while DMARC ties those signals to the visible sender domain and tells the receiving server what action to take when a message fails the checks.

SPF works by publishing a DNS record that lists exactly which mail servers are authorized to send email on a domain's behalf, so a receiving server can check whether the message actually came from an approved source. DKIM adds a cryptographic signature to outgoing mail using a private key, allowing the recipient to verify with a matching public key published in DNS that the message was not altered in transit and genuinely originated from a system holding that key. DMARC then aligns the results of SPF and DKIM with the domain shown in the visible 'From' address and publishes a policy, none, quarantine, or reject, instructing receiving servers what to do with messages that fail alignment, while also generating aggregate reports that show a domain owner exactly who is sending mail using their domain. A related, optional standard called BIMI lets a verified brand logo appear next to authenticated messages in supporting inboxes once DMARC is enforced.

Without these records properly configured, nothing stops an attacker from configuring their own outgoing server to display a 'From' address that matches a trusted domain exactly, since the original email protocol was never designed to verify sender identity. This gap is the technical mechanism behind most email spoofing and a large share of brand impersonation and business email compromise, since a forged message claiming to be from a bank, government agency, or company executive is far more convincing than one from an obviously unrelated address. Indonesian banks, insurers, and government agencies are frequent impersonation targets precisely because they are widely trusted, making full email authentication deployment a meaningful control for protecting both customers and internal staff, and increasingly an expectation under OJK and ISO 27001 communications security guidance.

Deployment is usually gradual: organizations typically start DMARC in monitoring-only mode, reviewing the aggregate reports to confirm every legitimate sending source, internal mail servers, marketing platforms, helpdesk tools, is correctly authorized, before moving the policy to quarantine and eventually reject. Skipping straight to a reject policy without this review risks blocking legitimate mail that has not yet been accounted for. Every domain and subdomain an organization owns should be covered, including ones that never send mail, since an unprotected subdomain is an easy target for an attacker to spoof.

At a glance

Type
Email security control
Also known as
SPF, DKIM, DMARC

How it works

  1. 1

    SPF record: a DNS record lists which mail servers are authorized to send email on the domain's behalf.

  2. 2

    DKIM signature: outgoing mail is cryptographically signed with a private key, and the recipient verifies it against a public key published in DNS.

  3. 3

    Alignment check: DMARC ties the results of SPF and DKIM to the domain shown in the visible 'From' address.

  4. 4

    Policy enforcement: the DMARC record tells receiving servers what to do with a message that fails alignment, none, quarantine, or reject.

  5. 5

    Reporting: DMARC generates aggregate reports showing every source sending mail as the domain, legitimate and fraudulent.

  6. 6

    Brand display (optional): once DMARC is enforced, the BIMI standard can show a verified brand logo next to authenticated messages.

Key points

  • SPF, DKIM, and DMARC work together, no single one is sufficient on its own
  • Without them, anyone can configure a server to display a 'From' address matching a trusted domain exactly
  • DMARC is the only one of the three that instructs receiving servers what action to take on failure
  • Most deployments start in DMARC monitoring mode before moving to an enforced reject policy
  • It is the technical mechanism behind most email spoofing and much brand impersonation and business email compromise
  • Every owned domain and subdomain should be covered, including ones that never send mail

Best practices

  • Publish an SPF record listing every legitimate sending source and keep it under the 10 DNS-lookup limit
  • Enable DKIM signing on all outbound mail streams, including marketing and transactional tools, not just the primary mail server
  • Start DMARC at p=none to monitor traffic and review aggregate reports before enforcing
  • Move to p=quarantine and then p=reject once every legitimate sender is confirmed and authorized
  • Review DMARC aggregate reports regularly to catch new or unauthorized senders early
  • Lock down unused domains and subdomains with a reject policy so they cannot be spoofed

Real-world example

An Indonesian bank rolls out DMARC in monitoring mode and discovers from the aggregate reports that a third-party marketing vendor has been sending customer newsletters on its behalf without being listed in its SPF record. The bank adds the vendor as an authorized sender, then moves its policy to enforced quarantine, closing a gap an attacker could otherwise have exploited to send convincing spoofed messages from the bank's real domain.

How Claro helps

Claro's guidance for tenant sending domains reinforces SPF, DKIM, and DMARC best practice so simulation and training email is itself a model of proper authentication, and Claro's phishing simulations include spoofed-sender scenarios that teach employees to check the actual sending domain rather than the display name, reinforcing the exact habit that catches spoofing attempts your own DMARC policy has not yet fully closed off.

Frequently asked questions

What is the difference between SPF and DKIM?

SPF lists which mail servers are allowed to send for a domain, checked against the server that actually delivered the message. DKIM cryptographically signs the message content itself, so tampering or forwarding through an unlisted server can still be verified. They provide independent, complementary signals.

Why do I need DMARC if I already have SPF and DKIM?

SPF and DKIM only produce pass or fail signals; neither tells a receiving server what to do with a failing message. DMARC ties both to the visible sender domain and publishes the actual enforcement policy, plus the reporting that reveals who is sending as your domain.

What does BIMI do?

BIMI lets a verified brand logo appear next to a company's authenticated emails in supporting inboxes, but it requires DMARC to already be enforced at quarantine or reject, so it is a benefit of full deployment rather than a replacement for it.

How long does full email authentication deployment take?

Most organizations phase it in over weeks to months, starting with SPF and DKIM, then DMARC in monitoring mode while every legitimate sender is confirmed, before finally enforcing a quarantine or reject policy.

Reduce your human risk

Claro measures and lowers the risk these terms describe, in English and Bahasa Indonesia.

Request a demo