Free tool

DMARC record generator

Create a valid DMARC record in a few clicks. Choose a policy, add the address for reports and any advanced options, then copy the exact TXT record to add at _dmarc in your domain's DNS.

  • Valid record syntax
  • Safe defaults
  • Plain-English notes
Policy (p)
Type
TXT
Host / name
_dmarc

    Free, with no sign-up. The tool runs entirely in your browser: nothing you enter is uploaded or stored on our servers.

    How to use it

    How it works

    1. 01

      Enter your domain

      The domain in your email addresses, such as example.com.

    2. 02

      Choose policy and reports

      Start with p=none and an address for reports.

    3. 03

      Publish the record

      Add a TXT record at _dmarc with the value shown.

    What a DMARC record does

    DMARC tells receiving mail servers what to do with messages that claim to come from your domain but fail authentication, and asks them to send you reports. It builds on SPF and DKIM: a message passes DMARC when SPF or DKIM passes and the domain they checked matches the domain in the visible From address.

    Gmail and Yahoo require a DMARC record from bulk senders, and it protects any business from people sending fake emails in its name.

    The tags explained

    Tag Meaning
    v=DMARC1 Identifies the record. Always first.
    p Policy: none (monitor), quarantine (treat as spam) or reject (block).
    rua Where daily aggregate reports are sent.
    ruf Where failure reports are sent. Few providers send them.
    sp Policy for subdomains, if different from p.
    pct Share of failing mail the policy applies to, for gradual rollout.
    adkim, aspf Alignment for DKIM and SPF: relaxed (default) or strict.
    fo When failure reports should be generated.

    A safe rollout plan

    1. Publish p=none with a reporting address and leave it for a few weeks.
    2. Read the reports, find every service that sends email for you and fix its SPF or DKIM setup.
    3. Move to p=quarantine, optionally with a lower pct at first.
    4. When nothing legitimate fails, move to p=reject.

    Where to add the record

    In your DNS provider, create a TXT record with the host or name _dmarc (some providers want the full _dmarc.example.com) and paste the value. Only one DMARC record can exist per domain; edit the existing one if there is one already. Changes usually take effect within an hour.

    Questions, answered

    Start with p=none and a reporting address. Enforcing straight away can block legitimate email from tools you forgot about.

    To the rua address. The reports are XML files, so many businesses send them to a DMARC reporting service that turns them into readable charts.

    You need at least one of them working and aligned for your mail to pass. Set up both for the best results.

    By the Stegnor team · Updated