---
title: "Anyone can send email as your domain: close it with DMARC"
description: "A DMARC record is a TXT line at _dmarc on your domain that tells receivers what to do with mail in your name that fails SPF and DKIM. Start with p=none and rua reports, then quarantine, then reject."
url: https://ihsanalapsi.dev/articles/dmarc-email-spoofing
lang: en
date: 2026-11-27
updated: 2026-11-27
tags: ["App security", "Web development"]
author: Ihsan Alapsi (إحسان العبسي)
---
# Anyone can send email as your domain: close it with DMARC

The From line of an email is like the name written on the back of an envelope: anyone can write your company's name there. A fake invoice from your domain, or a "change your password" message to your customers, arrives looking official if your domain never told the world how to recognize its real mail. By the end of this article you will know what a DMARC record is, what its three policies mean, and how to move from monitoring to rejecting without stopping your own mail.

## What is a DMARC record?

A DMARC record is a TXT line in DNS at the name `_dmarc` in front of your domain, telling receivers what to do with mail in your name that doesn't prove it came from you. The receiver is Gmail, Outlook, or any server that accepts the message.

[The RFC 9989 standard](https://datatracker.ietf.org/doc/html/rfc9989) came out in May 2026 as a Proposed Standard and replaced RFC 7489. Under it, the record for `example.com` lives at `_dmarc.example.com`, and the `v` tag is required with `DMARC1` as its only possible value.

```
_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
```

## How does the receiver know the mail is from you?

The receiver knows the mail is from you if it passes SPF or DKIM, and the authenticated domain aligns with the domain in the From line. That alignment is the heart of DMARC.

Here is the mistake many people make: they have SPF and DKIM, and they think they are protected. But a spoofer can send from their own server, with their own domain on the envelope, and SPF passes for their domain while the From line shows yours. Nothing in the check lied, but the check was about a different domain from the one the reader saw.

The standard says SPF alignment uses the MAIL FROM identity, and DKIM alignment uses the signing domain in the `d` tag. Relaxed alignment, the default, requires the same Organizational Domain, and strict alignment requires an exact match.

## What do none, quarantine and reject mean?

The `p` tag states your view of mail that fails DMARC: `none` has no preference, `quarantine` means suspicious, and `reject` means the use of your domain is not valid.


| Policy         | What the domain owner says, per the standard     | When to use it                          |
| -------------- | ------------------------------------------------ | --------------------------------------- |
| `p=none`       | No expression of preference                      | The first weeks, to collect reports     |
| `p=quarantine` | The mail is suspicious                           | After you fix every source of your mail |
| `p=reject`     | The failure is a clear sign the use is not valid | When the reports are clean              |


The `rua` tag sets where aggregate reports go, and the standard requires receivers to support `mailto:` addresses. The new standard also removed the `pct` tag and added the `t` tag for test mode, with a default of `n`.

## How do you move from none to reject without stopping your mail?

You move in order: monitor with reports, then fix every real sender, then tighten the policy. Jumping to `reject` on day one can reject your own invoices.

1. Publish a record with `p=none` and `rua` pointing to an address you read, and read the reports that arrive to learn who is sending in your name.
2. List every service that sends as you: company mail, the newsletter, store invoices, and app notifications.
3. Fix each one so it passes alignment: DKIM with your domain, or SPF on the same domain.
4. When only spoofers are left in the reports, change to `p=quarantine`, and then to `p=reject`.

## Where do you start now?

The lesson for us as site owners: email only knows your domain through your records, and a missing record is an open permission for anyone.

Open your domain's DNS panel now, and check for a `TXT` record at `_dmarc`. If there isn't one, add a `p=none` line with `rua` today. Then review [the security.txt file](/articles/security-txt-vulnerability-contact) so researchers know how to reach you, and [subdomain takeover](/articles/subdomain-takeover-dangling-dns), since forgotten DNS records are another door for the same spoofer. And if you want someone to test your whole platform, [Muhassan](/muhassan) does that. What do you find at `_dmarc` on your domain right now?

## FAQ

**If I have SPF and DKIM, do I still need DMARC?**

Yes. SPF and DKIM authenticate a domain, but DMARC is what ties that domain to the From domain the reader sees, and tells the receiver what to do when they don't align.

**Does the pct tag still work?**

Not in the new standard. RFC 9989 removed the pct tag and added the t tag for test mode, with a default of n.

**What do I set for a domain that never sends email?**

A reject policy right away, because there is no real mail that could be rejected by mistake. Any mail in its name is spoofing.
