# mail.dmarc()

Canonical URL: https://developers.iagenify.com/sdk/ref/domain/mail/dmarc/
Language: en

`domain.mail.dmarc(policy, { subdomain? }) → Promise<Result>`

Moves the alignment policy. A jump straight to the strictest is refused — the middle step is where a mistake is still visible.

Status: 3 policies · no jumping · breaks mailing lists

```javascript
await domain.mail.dmarc("quarantine");
// { host, dmarcPolicy: "quarantine", previous: "none" }
```

| Policy | What receivers do with misaligned mail |
| --- | --- |
| `none` | Nothing. It observes and reports. |
| `quarantine` | Spam folder. |
| `reject` | Thrown away. |

## none to reject is refused {#no-jump}

> **dmarc_step_too_big**
>
> Quarantine is where a mistake is still recoverable: the message is in a spam folder, and someone finds it. Under reject it is gone, and the sender gets a bounce they will not understand. The middle step is not a formality.

## What hardening breaks {#breaks}

Mailing lists and forwarding services rewrite the sender. Under a strict policy their mail stops arriving — which is correct behaviour and still a surprise. Read the reports under `none` long enough to know who sends on the domain's behalf.

## It is per host {#per-host}

The apex and each subdomain have their own policy. Hardening the apex does nothing for a subdomain.

## It is also the gate for a logo {#bimi}

[bimi()](/sdk/ref/domain/mail/bimi) requires an enforced policy — `quarantine` or `reject` — and refuses otherwise.

- [mail.bimi()](/sdk/ref/domain/mail/bimi): The logo.
- [mail.enable()](/sdk/ref/domain/mail/enable): Where the policy starts.

```python
domain.mail.dmarc("quarantine")
# {"host", "dmarcPolicy": "quarantine", "previous": "none"}
```
