Domain

mail.dmarc()

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.

3 policiesno jumpingbreaks mailing lists
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.mail.dmarc("quarantine");
// { host, dmarcPolicy: "quarantine", previous: "none" }
domain.mail.dmarc("quarantine")
# {"host", "dmarcPolicy": "quarantine", "previous": "none"}
PolicyWhat receivers do with misaligned mail
noneNothing. It observes and reports.
quarantineSpam folder.
rejectThrown away.

none to reject is refused

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

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

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() requires an enforced policy — quarantine or reject — and refuses otherwise.