Accepting projects ·CZ Get in touch →

Have DMARC? Three ways to have it and still not have it

A DMARC record in DNS does not mean it protects you. Three mistakes we found on company domains, and how to check them yourself.

DMARC tells mail servers what to do with an email that claims to be from you but has failed authentication. Without it, sending forged email in your name is much easier. But a record in DNS does not yet mean it works. We show three mistakes we found on company domains, and how to check them yourself.

Let's start with the overall picture. This spring the Vulscan scanner went through 8 307 websites of Czech companies. On 66 % of domains it found no DMARC at all. Another 19.8 % have the p=none policy, which only monitors forged messages and does not block them. And even among the domains that “have“ DMARC, there are some where it does nothing.

What DMARC should look like

It is a single text record (TXT) in your domain's DNS. It must sit at the name _dmarc and start with v=DMARC1:

_dmarc.example.cz  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.cz"

The value of p decides what happens to an email that fails: none nothing, quarantine spam, reject rejection. The address in rua receives aggregate reports on who sends mail for your domain.

1. The record is in the wrong place

On one domain we found a carefully written DMARC record with a strict quarantine policy, reports and all the optional parameters. Except it sat directly on the domain, not at the name _dmarc. Mail servers only ask for _dmarc, so in practice the domain had no DMARC.

The fix is to move the record. But don't rush into a strict policy. On the same domain we found no DKIM signature. With p=quarantine, mail would then rely on SPF alone, and SPF breaks when messages are forwarded. The right order is to turn on DKIM first, then DMARC with p=none, and tighten it after checking the reports.

On one company domain we found DMARC with a strict quarantine policy, but stored directly on the domain instead of under the name _dmarc, so no mail server ever read it. On another, both SPF and DMARC existed, but because of the typos v=spf and p=note, neither of them worked.

Lukáš Hrubý Managing director, HRUBY Software

2. A typo nobody sees

DNS accepts any text. Nobody warns you there is a mistake in the record. At another company, DMARC had the policy p=note instead of p=none. SPF started with v=spf instead of v=spf1. Both records existed, they were just invalid for mail servers. So anyone could send forged emails from the domain.

You won't spot it at first glance. Only a tool that parses the record helps, or the header of a received email (see below).

3. Reports that go nowhere

The p=none policy is a sensible start. It blocks nothing, but thanks to the reports you will see everyone who sends for your domain, for example the e-shop or the invoicing software. Based on that, you set up SPF and DKIM and tighten the policy.

That only holds if the reports actually arrive. At a third company, the mailto: prefix was missing in rua. An address without it is not valid, so the reports went nowhere. A record with p=none and no reports does nothing at all. It doesn't block and it doesn't tell you anything. Once mailto: was added, the reports started arriving.

Even with working reports, p=none is only a transition state. Protection against forged invoices comes only with quarantine or reject. According to Vulscan, only 4.6 % of companies had such a policy together with SPF ending in -all.

How to check it yourself

In a terminal, two queries are enough. Without a terminal, use any online tool that lists DNS records.

dig +short TXT _dmarc.example.cz
dig +short TXT example.cz
  • The query for _dmarc returns exactly one record, and it starts with v=DMARC1.
  • The value of p is none, quarantine or reject.
  • The address in rua starts with mailto: and the mailbox exists.
  • The domain has a single SPF record, starting with v=spf1 and ending with ~all or -all.

DKIM is not easy to find from DNS, because you don't know under which name to look for the key. Send yourself an email from your company address to Gmail and open “Show original“. At the top you will see SPF, DKIM and DMARC, each with PASS or FAIL. Do the same for an email from the e-shop and from invoicing, each system sends by a different route.

When to call an expert

A simple domain with one mailbox you can handle yourself. When several systems send for you, tightening the policy is risky. Forget one and you start sending your own invoices to spam. We help with this as part of our email deliverability service: we go through the reports, find all the senders and tighten the policy when it is safe.

Written by Ing. Lukáš Hrubý, HRUBY Software · ← All articles

Dealing with the same thing?

We'll look at it with you. The first consultation is free. More about the service: Email Deliverability.

Book a consultation →
// Contact

Get in touch.

Tell us what you need, or just call. We reply within one business day.

// Encrypted in transit · privacy policy