Guides

What DMARC is, and how to tell if your domain has it.

DMARC is a record in your domain’s DNS. It tells mail servers what to do with a message that claims to come from your company and cannot prove it. Without it, anyone can send email with your domain in the sender address.

The problem: the sender is typed by hand

When someone gets an email from billing@example.com, that address is just text inside the message. Email is more than forty years old and was born with no way to check that the sender has the right to use that address. That is why a stranger can send a fake invoice, or ask for a change of bank account, “from” your domain and land in your customers’ inboxes.

Three public records in your DNS solve this together: SPF, DKIM and DMARC.

The three pieces

Record What it says Where it lives
SPF Which servers may send email with your domain. A TXT record on example.com that starts with v=spf1.
DKIM A signature your provider adds to every message, and the public key to check it. A record at selector._domainkey.example.com. Your provider sets the selector.
DMARC What to do when a message with your domain as the sender fails both SPF and DKIM, and where to send you reports. A TXT record at _dmarc.example.com.

SPF and DKIM are not enough on their own. SPF checks a technical sender address the recipient never sees, and DKIM can sign with a domain that is not yours. Someone can pass both with their own domain and put yours in the visible sender.

DMARC closes that gap with alignment: the domain that passed SPF or DKIM must be the same one the recipient sees in the “From” field. A message passes DMARC if it passes SPF or DKIM with your domain.

The three policies

The most important part of a DMARC record is p=, the policy:

  • p=none: observe only. Servers deliver the message as if there were no DMARC and send you reports. It stops no fake email.
  • p=quarantine: messages that fail go to the spam folder.
  • p=reject: messages that fail are rejected and never arrive.

p=none is the right place to start, but it does not protect you. It is the difference between installing a camera and installing a lock.

What a DMARC record looks like

v=DMARC1; p=reject; rua=mailto:dmarc@example.com
  • v=DMARC1 says it is a DMARC record. It goes first.
  • p=reject is your domain’s policy.
  • rua=mailto:… is the mailbox that gets the reports: which servers sent email with your domain and whether they passed. They arrive as XML, one per provider per day, so a tool that summarizes them helps. If the mailbox is on another domain, that domain has to authorize it with a record of its own.
  • sp= is optional: the policy for your subdomains. Without sp, they inherit p.

There must be only one DMARC record. With two, servers apply neither.

How to check yours

The quickest way, with nothing to install: send yourself an email at a Gmail account, open it and, in the three-dot menu, choose “Show original”. SPF, DKIM and DMARC appear at the top, each with PASS or FAIL. If DKIM says PASS but with a domain that is not yours, your provider is signing with its own: DKIM for your domain still has to be turned on.

To see the records, in a macOS or Linux terminal:

dig +short TXT _dmarc.example.com
dig +short TXT example.com

On Windows:

nslookup -type=txt _dmarc.example.com
nslookup -type=txt example.com

The first query shows your DMARC; if it returns nothing, your domain has none. The second shows, among other things, your SPF: the line that starts with v=spf1.

For DKIM you need the selector, which depends on the provider. Microsoft 365 uses selector1 and selector2; Google Workspace uses google:

dig +short TXT selector1._domainkey.example.com

How to reach p=reject without losing email

The risk of raising the policy is rejecting legitimate email your company sends through other services: e-invoicing, payroll, the newsletter tool, the CRM, the contact form on your website. That is why it is done in steps:

  1. Publish p=none with rua. For two to four weeks, the reports tell you who sends email with your domain.
  2. List what is legitimate. Every service that shows up and is yours has to pass SPF or DKIM with your domain: add it to your SPF, or turn on DKIM signing with your domain in it.
  3. Mind the SPF limit. An SPF record allows at most ten DNS lookups, and every include counts. Past that limit, SPF errors out and stops working.
  4. Move to p=quarantine and keep reading the reports for a few more weeks.
  5. Move to p=reject once the reports only show failures from servers that are not yours.

If a service cannot sign with your domain, give it a subdomain of its own, such as invoices.example.com, with its own SPF and DKIM.

Mistakes we see often

  • Staying on p=none forever. The record exists, but it stops nothing.
  • Two SPF records. There must be only one; with two, SPF errors out. Merge the includes into one.
  • SPF ending in +all or ?all. +all authorizes every server in the world and ?all says nothing. The usual endings are ~all or -all.
  • DKIM never turned on. Microsoft 365 and Google Workspace do not sign with your domain until you enable it in their console and publish their records.
  • Domains that send no email, left open. If you own other domains, such as a country version or a former brand, they can be used to impersonate you too. For the ones that send no email, v=spf1 -all in SPF and v=DMARC1; p=reject in DMARC are enough.
  • Reports nobody reads. A rua pointing at a mailbox nobody opens is as good as none.

What DMARC does not stop

DMARC protects your exact domain. It does not stop someone from:

  • registering a domain that looks almost like yours and sending email from it;
  • putting your company’s name in the sender’s display name, with a Gmail address or any other domain;
  • writing from a real account at your company that they broke into with a stolen password.

How to check each case is in the guide Can someone send email in your company’s name?

Why it is no longer optional

Since February 2024, Gmail and Yahoo require SPF, DKIM and DMARC from anyone who sends them email in bulk, and since May 2025 Outlook.com requires the same. A well-set DMARC does more than stop impersonation: it also helps your legitimate email reach the inbox instead of the spam folder.

What Inspecnia checks in your email

In every review we look at SPF, DKIM and DMARC on your main domain and on any others you own, and we look for domains similar to yours that can send email. Every finding comes with its fix, in order of priority. How to request a review.

Inspecnia

See your company the way everyone else does.

Email us your domain and who we should send the report to: reviews are requested by email. We confirm the domain is yours and get started.

Request your review