SPF, DKIM and DMARC: how to stop others from using your company's email

By Orbit Guardian · Updated

Short answer

SPF, DKIM and DMARC are three public records in your domain's DNS. SPF lists which servers may send email on the company's behalf, DKIM signs each message to prove it came from an authorized sender and was not altered, and DMARC tells mailbox providers what to do with messages that fail these checks: only monitor (p=none), send to quarantine (p=quarantine) or reject (p=reject). Only with DMARC at quarantine or reject does a fake email using your address stop reaching your customers' inboxes.

Why anyone can send email from your address

The email protocol was created in the early 1980s, when the internet connected a handful of universities and nobody was thinking about fraud. The "From:" field of a message works like the sender written on an envelope: whoever sends it can write anything.

That is why a scammer can send an email that shows up as finance@yourcompany.com.br without access to any of the company's accounts. The only way your customer's email provider can tell the message is fake is to check rules that the domain owner publishes. Those rules are SPF, DKIM and DMARC.

What each record does

  • SPF (Sender Policy Framework): lists the servers and services authorized to send email with your domain, such as Google Workspace, Microsoft 365, your electronic invoice (nota fiscal) system or your email marketing tool.
  • DKIM (DomainKeys Identified Mail): each service signs its messages with a private key, and the public key sits in your DNS. The recipient's provider checks the signature and knows the message was not altered on the way.
  • DMARC (Domain-based Message Authentication, Reporting and Conformance): ties the two together. It requires the domain in the "From:" field to match the one that passed SPF or DKIM, sets what to do with messages that fail, and asks providers for daily reports on who is sending in your name.

On their own, SPF and DKIM do not stop someone from faking the address your customer sees. DMARC is what closes the door, and only once the policy leaves monitoring mode.

How to check whether your domain is protected

The fastest way is Orbit Guardian's free DMARC, SPF and DKIM checker, which reads the domain's public records and shows the DMARC policy, SPF and DKIM in seconds. To check by hand, look up the DMARC record in a terminal (replace suaempresa.com.br with your domain):

nslookup -type=txt _dmarc.suaempresa.com.br
  • No record: the domain has no DMARC and anyone can use your address.
  • p=none: the domain only monitors. Reports arrive, but fake email is still delivered.
  • p=quarantine: messages that fail go to spam or quarantine.
  • p=reject: messages that fail are refused. This is the goal.

How to reach p=reject without blocking legitimate email

  1. List everyone who sends on your behalf: mailboxes, invoice system, the system that issues your boletos (Brazilian bank payment slips), CRM, online store, email marketing and any system that sends automatic notices.
  2. Publish a single SPF record with all of these services, staying within the specification's limit of 10 DNS lookups.
  3. Turn on DKIM in each service and publish the keys in DNS.
  4. Publish DMARC in monitoring mode, with an address to receive the reports.
  5. Read the reports for a few weeks, until every legitimate sender shows up as authenticated.
  6. Move to p=quarantine and, once nothing legitimate is being caught, to p=reject.

A starting DMARC record usually looks like this (with your own domain):

v=DMARC1; p=none; rua=mailto:dmarc@suaempresa.com.br

Common mistakes

  • Two SPF records on the same domain: the specification allows only one, and with two, SPF fails.
  • More than 10 DNS lookups in SPF: this happens when services added with "include" pile up, and SPF starts returning an error.
  • Staying at p=none forever: the domain looks configured, but fake email keeps arriving.
  • Jumping straight to p=reject: real email from forgotten services, such as the invoice system, stops arriving.
  • Forgetting subdomains and domains that do not send email: scammers can use them too, and they need a policy.

Google, Yahoo and Microsoft already require authentication

Since February 2024, Gmail and Yahoo have required SPF, DKIM and DMARC from anyone sending large volumes to their users, and Microsoft started requiring the same for Outlook.com in 2025. Even below those volumes, unauthenticated email is more likely to land in spam.

Frequently asked questions

  • No. DMARC protects the exact domain. A scammer who registers yourcompanny.com.br, with one extra letter, publishes their own rules. That calls for monitoring registrations of look-alike domains and requesting their removal.

Sources