Agent Mail Weekly

The DMARC Record: A Guide for Agent-Sent Email

What each tag does, why SPF and DKIM can pass while DMARC fails, and how to move an agent's sending domains from p=none to reject without losing mail.

By Agent Mail Weekly Editors · Updated

A DMARC record is a DNS TXT record, published at _dmarc. in front of a domain, that tells receiving mail servers two things: what to do with a message whose visible From address uses the domain but can't be tied to it by SPF or DKIM, and where to send reports about the mail they saw. Gmail, Yahoo and Outlook.com require one from bulk senders. For an AI agent that sends on its own, DMARC is also the one check that catches the agent writing a From address its sending path can't vouch for, and its reports are how you find out.

What a DMARC record looks like

The record lives at _dmarc.<domain> and holds a list of tag=value pairs separated by semicolons. The smallest useful one, for a domain just starting out:

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

The same domain once every legitimate sender is passing:

_dmarc.example.com.  TXT  "v=DMARC1; p=reject; np=reject; rua=mailto:dmarc-reports@example.com"

To see what a domain publishes today:

dig +short TXT _dmarc.example.com

Publish exactly one record per name. A receiver that finds two DMARC records at the same name discards both, so a second record added "to test something" switches DMARC off for the domain.

The tags

DMARC was first written down in RFC 7489 (2015). In May 2026 the IETF replaced it with RFC 9989, with reporting split out into RFC 9990 and RFC 9991. Most records written for the old spec still work; the table follows the new one.

Tag What it does Default
v Must be the first tag and must read DMARC1, or the whole record is ignored. Required
p The policy for mail that fails DMARC: none (just report), quarantine (treat as suspicious, usually the spam folder) or reject. Applies to the domain and its subdomains unless sp or np says otherwise. none if missing
sp The policy for existing subdomains of the domain. The p value
np The policy for subdomains that don't exist in DNS. New in RFC 9989. sp, else p
adkim DKIM alignment: r relaxed or s strict (see below). r
aspf SPF alignment: r relaxed or s strict. r
rua Where to send aggregate reports, as mailto: URIs. Without it, receivers send none. None
ruf Where to send failure reports about individual messages. None
fo Which failures trigger a failure report. Ignored without ruf. 0
t Test mode. t=y asks receivers to apply one level less than the policy: quarantine becomes none, reject becomes quarantine. New in RFC 9989. n
psd Marks a public suffix domain. Leave it out for a company domain. u

RFC 9989 deprecates pct, rf and ri; t takes over what pct was mostly used for, a softer first step towards enforcement. Receivers ignore tags they don't know, so one that hasn't adopted RFC 9989 yet will apply your policy in full even with t=y. Treat test mode as a request, not a guarantee.

How DMARC decides pass or fail: alignment

A message passes DMARC when at least one of these holds:

  • SPF passes and aligns. SPF checks the envelope sender, the MAIL FROM address that ends up in the Return-Path header, not the From address a reader sees. Its domain has to match the From domain. Under RFC 9989, DMARC uses only the MAIL FROM domain for this, with no fallback to the server's HELO name.
  • DKIM passes and aligns. A valid DKIM signature whose d= domain matches the From domain.

"Matches" depends on the mode. Relaxed, the default, accepts any two domains under the same organizational domain, so agents.example.com aligns with example.com. Strict accepts only the exact same name.

This is where agent mail most often goes wrong. SPF and DKIM each report a pass, the provider's console shows green, and DMARC still fails, because both passes belong to someone else's domain. Take an agent sending as assistant@agents.example.com:

How the message is sent SPF DKIM DMARC
Signed with d=agents.example.com, return path on bounce.agents.example.com Pass, aligned Pass, aligned Pass
Signed with d=example.com, return path on the provider's domain Pass, not aligned Pass, aligned in relaxed mode Pass (fails with adkim=s)
Signed only with the provider's d= domain, return path on the provider's domain Pass, not aligned Pass, not aligned Fail
From address on a domain the sending setup never authenticated Not aligned Not aligned Fail

The fix for the third row is domain authentication at the sending provider: DKIM keys published under your own domain, and ideally a custom return path on your subdomain. DKIM alignment matters more of the two, because a DKIM signature usually survives forwarding and SPF does not.

Subdomains: what an agent's sending domain inherits

When a message arrives from agents.example.com, the receiver first looks for _dmarc.agents.example.com. If there is none, it walks up the DNS tree to _dmarc.example.com and applies that record's sp policy, or p if there's no sp. So a DMARC policy on the parent domain does cover agent subdomains, and a subdomain can publish its own record to override it: p=none while a new agent subdomain is being checked, say, under a parent already at reject.

SPF and DKIM have no such inheritance. Every domain used as a return path needs its own SPF record, and every d= domain needs its own published DKIM keys. A new agent subdomain is covered by the parent's DMARC policy from its first send, but unless its mail is signed with a DKIM key on the parent domain, it fails DMARC until its own records exist.

np matters for agents in particular. A model that writes its own From header can produce a subdomain that doesn't exist: support.example.com when the real one is help.example.com, or a name made up to sound right. np=reject tells receivers to refuse mail from any subdomain that isn't in DNS, while existing subdomains keep the sp policy.

Where agents break DMARC

  1. The model picks the From address. Every address an agent may send as should come from an allowlist the sending layer enforces, built from domains whose SPF and DKIM are set up. Text the model writes should never reach the From header directly.
  2. A provider sends with its own domain. Agent tooling that sends through a provider with no domain authentication set up gets the third row of the table above. Check the d= value of the DKIM-Signature header on a real message, not the provider's dashboard.
  3. New send paths appear without anyone setting them up. An agent given a new tool (a helpdesk, a CRM, a calendar service) may start sending as your domain through it. Aggregate reports are where that shows up.
  4. Inboxes are provisioned by code. When agents get addresses or subdomains programmatically, the DNS records have to be created and verified as part of provisioning, before the first send, not after the first bounce. Sending Domain Setup for Autonomous Agents covers the rest of that setup.
  5. A failure looks like a success. A rejected message can still be logged as sent by the agent that sent it. Silent Failure Modes in Agentic Email Pipelines goes into why, and why reports and bounces have to be read by something other than the agent.

Moving from p=none to reject

  1. Publish p=none with rua. Nothing is blocked yet; receivers start sending aggregate reports. Reports are XML files, usually compressed, and arrive about once a day from each receiver that sends them. A report-processing service or a parser makes them readable.
  2. Read the reports for long enough to see every kind of send. A monthly invoice run or a quarterly campaign won't show up in a week. List every source sending as the domain and decide, for each, whether it's yours.
  3. Fix or remove each failing source. Set up DKIM under your domain for each legitimate service; stop the ones that shouldn't send as you.
  4. Move to quarantine, then reject. t=y softens each step by one level at receivers that support it. Apply the policy to agent subdomains first if the parent domain carries mail people depend on.
  5. Keep rua on. Agents add send paths over time. The reports are how you notice one before mail starts disappearing.

If reports go to an address on another domain, such as a reporting service, that domain has to agree to receive them by publishing a record of its own:

example.com._report._dmarc.reports.example.net.  TXT  "v=DMARC1"

Failure reports (ruf) carry details of individual messages and can include personal data; not every receiver sends them. Most senders rely on aggregate reports.

For a domain that sends no mail at all, such as a lookalike domain you registered to keep it from others, publish v=DMARC1; p=reject; together with an SPF record of v=spf1 -all, so nobody, agent or otherwise, can send as it.

What Gmail, Yahoo and Outlook.com require

The rules belong to the mailbox providers and they change, so check their pages before relying on this summary.

Provider Applies to What it asks for
Gmail Senders of 5,000 or more messages a day to personal Gmail accounts A DMARC record for the sending domain, which may be p=none, and a From domain aligned with either the SPF or the DKIM domain. SPF and DKIM are both required as well. See Gmail's sender guidelines.
Yahoo Bulk senders A DMARC policy of at least p=none, with the From domain aligned to SPF or DKIM. See Yahoo's sender best practices.
Outlook.com (Hotmail, Live) Domains sending more than 5,000 messages a day, from May 2025 SPF and DKIM must pass, and DMARC must be at least p=none and aligned with SPF or DKIM, preferably both. See Microsoft's announcement.

p=none meets all three, but it protects nothing: mail that fails is still delivered. An agent's volume can also cross these thresholds within a single run, so it's worth meeting them from the first send.

When the agent is the one receiving

An agent that reads an inbox sees DMARC from the other side. The From header of an incoming message is just text, and anyone can write any address in it. Before an agent treats a message as coming from a known sender (a customer, a vendor, the company's own domain), it should check the receiving server's Authentication-Results header for dmarc=pass on that From domain, and treat anything else as unverified. A domain at p=none gets no protection here: mail spoofing it is delivered all the same. Prompt Injection Risks in MCP-Driven Email Agents covers why message content should never be taken as an instruction, whoever it appears to come from.

How to check a message

  • Look the record up with dig +short TXT _dmarc.<domain>, for the sending subdomain and for its parent. Make sure there is one record at each name, not two.
  • Send a test to a Gmail account, open it and choose Show original. SPF, DKIM and DMARC should each read PASS.
  • In the raw headers, compare three domains: the From address, the d= in DKIM-Signature, and the Return-Path. At least one of the last two has to share the From address's organizational domain, or the exact name under strict alignment.
  • Read the dmarc= result in Authentication-Results. Its exact wording differs between receivers, but it names the result and the From domain it was checked against.

Checklist

  • Every domain and subdomain an agent sends as is covered by exactly one DMARC record, its own or its parent's.
  • The From address is set by the sending layer from an allowlist, never written freely by the model.
  • Every message carries a DKIM signature with d= on your own domain, not only the provider's.
  • Return paths are on your subdomain where the provider allows it, with an SPF record there.
  • rua is set, and someone (not the agent) reads the reports.
  • np=reject stops mail from subdomains that don't exist.
  • Domains that send no mail publish p=reject and v=spf1 -all.
  • The policy moves to quarantine and then reject once reports show every legitimate source passing.
  • An agent reading mail checks dmarc=pass before trusting who a message is from.

Sources

  1. RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)
  2. RFC 9990: DMARC Aggregate Reporting
  3. RFC 9991: DMARC Failure Reporting
  4. dmarc.org: IETF Publishes Updated DMARC Specification
  5. Gmail Help: Email sender guidelines
  6. Google Workspace Admin Help: Set up DMARC
  7. Yahoo Sender Hub: Sender best practices
  8. Microsoft Tech Community: Outlook's new requirements for high-volume senders

Further reading