# What Does DMARC Fail Mean, and How Do You Fix It?

> DMARC fail means neither SPF nor DKIM passed with a domain matching your From address. Read the 4 header cases, fix alignment, and choose a policy.

Canonical: https://ballast.to/blog/dmarc-fail
Last updated: 2026-11-20

`dmarc=fail` in an email header means neither SPF nor DKIM passed with the domain in your `From` address. One of the two is enough. If SPF passes and its domain matches `From`, DMARC passes. If DKIM passes and its `d=` domain matches `From`, DMARC passes too. When both miss, or both pass under somebody else's domain name, DMARC fails and the receiver follows whatever `p=` policy you published at `_dmarc`.

Before you touch DNS, open one failed message and read four lines of its raw header. You'll see right away whether a record is broken or a passing signature has the wrong domain on it.

## Why does DMARC fail when SPF and DKIM both pass?

Because the domain that passed isn't the domain in your `From` line. RFC 7489 calls this identifier alignment.

SPF checks the envelope sender (`Return-Path`, written in headers as `smtp.mailfrom`), which is separate from the `From` address a person sees in their inbox. DKIM checks the `d=` tag inside `DKIM-Signature` (`header.d`). DMARC then compares those two names against `header.from`.

Here's a real header from a fresh Google Workspace domain that hadn't finished DKIM setup yet, opened with **Show original** in Gmail:

```text
Authentication-Results: mx.google.com;
  dkim=pass header.i=@yourdomain-com.20230601.gappssmtp.com header.s=20230601;
  spf=pass smtp.mailfrom=bounce.sendservice.net;
  dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yourdomain.com
```

Look at the three domain names:

- `header.from` is `yourdomain.com`.
- `dkim=pass` is on `yourdomain-com.20230601.gappssmtp.com`. Google signs mail with that fallback domain until an admin generates a key for `yourdomain.com` and clicks **Start authentication**.
- `spf=pass` is on `bounce.sendservice.net`, the sending tool's own return address.

SPF passed. DKIM passed. Neither one has `yourdomain.com` on it, so DMARC fails.

## How do you read a DMARC failure in an email header?

Send an email from the account you're checking to a Gmail or Outlook address you can open, then pull up the source. In Gmail, click the three dots next to Reply and pick **Show original**. In Outlook on the web, it's the three dots > **View** > **View message source**.

Search for `Authentication-Results` and find the line with `dmarc=fail`. It will match one of these four patterns:

| What `Authentication-Results` shows | Why DMARC failed | Fix |
| --- | --- | --- |
| `spf=pass`, `dkim=pass`, `dmarc=fail` | `smtp.mailfrom` and `header.d` both carry another domain's name | Switch on custom DKIM for your domain (`header.d=yourdomain.com`), or put Return-Path on a subdomain of yours |
| `spf=pass` (wrong domain), `dkim=fail` or `none`, `dmarc=fail` | SPF passed for a tool's bounce domain, and DKIM is missing or broken | Publish and turn on the [DKIM selector](https://ballast.to/blog/dkim-selector) for your mailbox provider or tool |
| `spf=fail` or `softfail`, `dkim=pass` (wrong domain), `dmarc=fail` | Your SPF record doesn't list the sending IP, and DKIM used a fallback key | Add your provider's `include:` to SPF and turn on your own DKIM key |
| `spf=permerror`, `dkim=none` or `fail`, `dmarc=fail` | Two `v=spf1` records or more than 10 DNS lookups broke SPF, and DKIM didn't cover for it | Keep one SPF record under 10 lookups (see [SPF flattening](https://ballast.to/blog/spf-flattening)) and fix DKIM |

One aligned pass carries the whole check. Forwarded mail breaks SPF all the time because the forwarder's IP isn't in your SPF record. As long as your own DKIM signature is still valid after the forward, DMARC passes on DKIM alone.

## What causes DMARC to fail on cold email domains?

On outbound domains I see the same four causes over and over.

### 1. DKIM was added in DNS, never turned on in the admin panel

Pasting a TXT or CNAME record into Cloudflare doesn't make Google Workspace or Microsoft 365 start using it.

In Google Workspace you still have to open **Apps > Google Workspace > Gmail > Authenticate email**, pick the domain, and click **Start authentication**. Until you click that button, every outgoing email carries the `gappssmtp.com` key.

In Microsoft 365 you publish two CNAMEs (`selector1._domainkey` and `selector2._domainkey`), then go into the Microsoft Defender portal (**Email & collaboration > Policies & rules > Threat policies > Email authentication > DKIM**) and toggle signing on for that domain. Skip the toggle and Exchange Online keeps signing with your initial `*.onmicrosoft.com` address.

Ten secondary domains means ten toggles. I'd run every domain through the [DKIM checker](https://ballast.to/check/dkim) once you finish rather than assuming the eighth domain went like the first.

### 2. Two SPF records, or an eleventh lookup

[RFC 7208 section 4.6.4](https://www.rfc-editor.org/rfc/rfc7208.html#section-4.6.4) gives an SPF check a ceiling of 10 DNS lookups across `include`, `a`, `mx`, `ptr`, `exists` and `redirect`. Lookup number 11 returns `permerror`, which counts as a fail. Having two `v=spf1` TXT records at `@` returns `permerror` straight away too.

A cold email domain has no business being near 10 lookups. It only sends from one mailbox provider:

```text
v=spf1 include:_spf.google.com ~all
```

or `v=spf1 include:spf.protection.outlook.com -all` for Microsoft 365. Each costs 1 lookup. Don't copy your main company domain's SPF record (with Zendesk, Mailgun, Freshdesk and old tools still sitting in it) onto your outbound domains.

### 3. Sending through an ESP without domain verification

Tools that send through their own servers (SendGrid, Mailgun, Mailchimp, HubSpot) put their own bounce domain in `Return-Path` unless you add their custom CNAME records. If you send from `you@yourdomain.com` through an unverified ESP account, both `smtp.mailfrom` and `header.d` belong to the ESP, and every message gets `dmarc=fail`.

Sending straight from Google Workspace or Microsoft 365 mailboxes doesn't have this problem. Once the mailbox provider's own SPF and DKIM are live on your domain, both match `From`.

### 4. `adkim=s` or `aspf=s` in the DMARC record

DMARC defaults to relaxed alignment (`r`). If someone pasted a record containing `adkim=s` or `aspf=s`, a Return-Path on a subdomain such as `bounces.example.com` is no longer accepted for `From: alex@example.com`.

## What is the difference between relaxed and strict DMARC alignment?

The `adkim=` and `aspf=` tags in a `_dmarc` record set how closely the authenticated domain has to match `From`:

| Mode | Tag in `_dmarc` | Rule | Example for `From: alex@example.com` |
| --- | --- | --- | --- |
| **Relaxed** (default) | `adkim=r; aspf=r` (or left out) | Same root domain; subdomains count | `smtp.mailfrom=bounces.example.com` or `header.d=mail.example.com` **passes** |
| **Strict** | `adkim=s; aspf=s` | Exact domain match, letter for letter | `smtp.mailfrom=bounces.example.com` **fails**; only `example.com` passes |

Leave both tags out of your record so they stay on `r`. Strict mode breaks any sender that puts its Return-Path or DKIM key on a subdomain.

## DMARC quarantine vs reject: which policy should you use?

The `p=` tag in `_dmarc.yourdomain.com` tells receivers what to do with mail that fails DMARC.

| Policy | Tag | What happens on `dmarc=fail` | Where it fits |
| --- | --- | --- | --- |
| **None** | `p=none` | Mail is delivered normally; failures are logged in `rua=` reports | New domains, cold email domains, any domain where you're still checking senders |
| **Quarantine** | `p=quarantine` | Mail is sent to the spam or junk folder | Domains where you've checked that every real sender aligns |
| **Reject** | `p=reject` | Mail is refused at SMTP with a `550` bounce | Main company domains after weeks of clean reports at `p=quarantine` |

Both [Gmail's sender guidelines](https://support.google.com/mail/answer/81126) and [Outlook.com's high-volume sender rules](https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730) accept `p=none`. Both providers check that a DMARC record exists and that your mail passes alignment; neither requires `p=reject`.

Start every new cold email domain on `p=none`:

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

Putting `p=reject` on a brand-new domain buys you nothing for inbox placement, and if you miss the DKIM toggle on one domain, your own policy tells Gmail and Microsoft to bounce every email you send. Once you've confirmed in headers (or reports) that SPF and DKIM align, move to `p=quarantine` if you want spoofing protection.

## What bounce codes come back when DMARC fails?

When a message fails DMARC and gets refused (either because your own record says `p=reject` or because you hit a receiver's bulk-sender rule without authentication), the bounce comes back with a `5.7.x` code. As [soft bounce vs hard bounce](https://ballast.to/blog/soft-vs-hard-bounce) explains, a `5.7.x` code points to your domain setup while the recipient's address is still valid:

- **Gmail (`550 5.7.26`):** *"This email has been blocked because the sender is unauthenticated."* Returned when a message fails SPF and DKIM, or fails DMARC under a `p=reject` policy.
- **Outlook.com (`550 5.7.515`):** Microsoft's rejection code for domains sending over 5,000 messages a day to consumer Outlook.com, Hotmail and Live.com addresses without passing SPF, DKIM and DMARC alignment.
- **Microsoft 365 / Exchange Online (`550 5.7.509`):** returned when the sending domain publishes `p=reject` and the message fails DMARC at an Exchange Online receiver.

Don't delete leads that bounce with `5.7.26`, `5.7.509` or `5.7.515`. The addresses are fine. Pause the campaign, fix SPF and DKIM on the domain, and resume once a test email shows `dmarc=pass`.

## How do you fix DMARC fail step by step?

Here's the order I'd go in:

1. **Read one raw header.** Open a sent message with **Show original** in Gmail or **View message source** in Outlook. Write down the domains next to `header.from=`, `header.d=` and `smtp.mailfrom=`.
2. **Check the DNS records.** Put the `From` domain into the [free DMARC checker](https://ballast.to/check/dmarc). It checks `_dmarc`, counts your SPF lookups and tests 23 common DKIM selectors in one go.
3. **Get DKIM aligned first.** Generate the key in Google Workspace or the two CNAMEs in Microsoft 365, publish them, and turn signing on so `header.d=` carries your `From` domain.
4. **Keep SPF to one short line.** One `v=spf1` record at `@`, under 10 lookups, ending in `~all` or `-all`.
5. **Drop `p=reject` back to `p=none` while you fix things.** If a strict policy is bouncing your mail right now, lower `_dmarc` to `p=none` until your new DKIM key has propagated and a test message comes through with `dmarc=pass`.

## When DMARC isn't the problem

If **Show original** already says `spf=pass`, `dkim=pass` and `dmarc=pass` with your own domain name, tightening `_dmarc` to `p=quarantine` or `p=reject` won't move your cold emails from spam to the inbox. Authentication only gets you past the gate. Once all three say `pass`, where you land comes down to [your email reputation](https://ballast.to/blog/email-reputation), your bounce and spam complaint rates, daily volume per mailbox, and whether anyone replies. Our post on [why emails go to spam](https://ballast.to/blog/why-emails-go-to-spam) shows how to tell which of those is the culprit.

## How does Ballast check DMARC?

The [free domain check](https://ballast.to/check) reads `_dmarc` for syntax errors, duplicate records, policy (`none`, `quarantine`, `reject`), `pct` and `rua`, alongside SPF lookup counts, 23 common DKIM selectors and 9 blacklists. Inside Ballast, every sending domain gets that check again each night. If someone edits DNS and breaks a record, it shows up on the Domains page the next morning, and bounce breakers pause a campaign if `5.7.x` rejections start coming back. The [domains docs](https://ballast.to/docs/domains) cover the full report.

## FAQ

### What does DMARC fail mean?

Neither SPF nor DKIM passed with a domain matching the visible `From` address. Either both checks failed outright, or they passed for a different domain (such as `gappssmtp.com`, `onmicrosoft.com` or an ESP's bounce domain) that doesn't align with `From`.

### Can DMARC pass if SPF fails?

Yes. DMARC only needs one of SPF or DKIM to pass and align with `From`. When someone forwards your email, SPF usually fails because the forwarder's IP isn't in your SPF record, and an aligned DKIM signature still makes DMARC pass.

### Why does DMARC fail when SPF passes?

Because SPF passed for the `Return-Path` domain (`smtp.mailfrom`), which didn't match your `From` domain (`header.from`), and DKIM didn't pass with your `From` domain either. Turning on DKIM for your own domain fixes it.

### Is `p=none` enough for Gmail and Microsoft bulk sender rules?

Yes. Both Gmail and Outlook.com accept `p=none` for high-volume senders, as long as the `_dmarc` record is valid and SPF or DKIM aligns with the `From` domain.

### How long does a DMARC fix take to work?

Once your old DNS record's TTL expires. On Cloudflare and most modern DNS hosts that's 5 minutes to an hour; on hosts with a 24-hour default TTL, or right after turning on DKIM in Microsoft 365, it can take up to a day.

### Can a domain have two DMARC records?

No. Two `v=DMARC1` TXT records at `_dmarc.yourdomain.com` cause receivers to ignore DMARC or fail the check. Keep a single record.

## Sources

- [RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC)](https://www.rfc-editor.org/rfc/rfc7489.html), sections 3.1 and 6.3, checked 20 November 2026.
- [Gmail email sender guidelines](https://support.google.com/mail/answer/81126) and [Gmail SMTP errors and codes](https://knowledge.workspace.google.com/admin/support/troubleshooting/gmail-smtp-errors-and-codes), checked 25 October 2026.
- [Outlook's requirements for high-volume senders (`550 5.7.515`)](https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730), Microsoft Tech Community, checked 16 October 2026.
- [RFC 7208: Sender Policy Framework (SPF)](https://www.rfc-editor.org/rfc/rfc7208.html#section-4.6.4), section 4.6.4, checked 25 October 2026.
