New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Free tool

DMARC record generator

Build a DMARC record with the policy, reporting addresses and alignment you choose. Every tag is explained, and a staged rollout shows how to go from monitoring to enforcement safely.

  • Runs in your browser
  • Explains every tag
  • Rollout plan included

Build your record

Policy for mail that fails DMARC (p)

Your DMARC record

Type
TXT
Host
_dmarc

    What each part of your record does

    TagValueMeaning

    A safe rollout, stage by stage

    StageRecordWhat to do
    1. Watchp=none; rua=mailto:...Collect reports for a few weeks. List every system that sends as your domain and fix SPF or DKIM for the legitimate ones.
    2. Start enforcingp=quarantine; pct=10Apply the policy to a small share of failing mail, then raise pct in steps (25, 50, 100) while reports stay clean.
    3. Full quarantinep=quarantine; pct=100Stay here until no legitimate source fails.
    4. Rejectp=rejectFailing mail is refused. Keep reading reports; new senders added later will need setting up.

    How long to stay at each stage depends on how many systems send for your domain. The stage names are our suggestion, not part of the DMARC standard.

    The generator runs in your browser and stores nothing. Always keep one DMARC record per domain, published as a TXT record at _dmarc.

    What DMARC adds to SPF and DKIM

    SPF and DKIM each check something, but neither says what to do when the check fails, and neither is tied to the address people actually see in the From line. DMARC fixes both. It tells receivers: only accept mail as coming from this domain if SPF or DKIM passed using the same domain as the From address, and here is what to do with mail that does not. It also asks receivers to send you reports, which is how you find out who is sending mail as your domain.

    Every tag the generator can set

    TagWhat it doesNotes
    vVersionAlways DMARC1 and always first.
    pPolicy for failing mail: none, quarantine or rejectRequired.
    spPolicy for subdomainsOptional. Without it, subdomains follow p.
    ruaWhere to send aggregate reportsStrongly recommended. One or more mailto: addresses.
    rufWhere to send failure reportsOptional. Many large receivers do not send these.
    adkim, aspfAlignment mode: relaxed (r) or strict (s)Relaxed is the default and is right for most domains.
    pctPercentage of failing mail the policy applies toUse it to phase in quarantine or reject.
    foWhen to produce failure reports0 (default), 1, d or s.
    riRequested seconds between aggregate reportsDefault is 86400, one day. Receivers may ignore it.

    Roll out in stages

    The common mistake is to publish p=reject on day one and discover, through bounced invoices, that a forgotten system was sending as you. The safe route is to start by watching and tighten only when the reports are clean.

    • Publish p=none with a rua address that reaches a mailbox or reporting service you will actually read.
    • Over the following weeks, list every source in the reports. Fix SPF or DKIM for each legitimate one. Anything unrecognised may be spoofing, or may be a forgotten system.
    • Move to quarantine with a small pct, then raise it in steps as the reports stay clean.
    • Move to reject once every legitimate source passes, and keep reading the reports afterwards.

    The stage table under the generator shows each step as a record you can copy.

    Alignment, in plain words

    DMARC passes when SPF or DKIM passes and the passing domain matches the From domain. With relaxed alignment, a subdomain counts as a match: mail from mail.example.com aligns with a From of example.com. With strict alignment, the domains must be identical. Strict is only worth it when you control every sender and want the tightest rule; it can break legitimate mail from third-party services that use subdomains.

    Sending reports to another domain

    If your rua address is on a different domain from the one you are protecting, such as a reporting service, receivers check that the other domain agrees to receive your reports. It does so by publishing a TXT record at yourdomain._report._dmarc.otherdomain with the value v=DMARC1. Reporting services normally set this up for you; the generator reminds you when it applies.

    Aggregate reports are XML

    The daily rua reports are compressed XML files, one per receiver, listing sending IPs, message counts and SPF and DKIM results. They are hard to read by hand once more than a few arrive each day. Most people use a reporting service or a script to turn them into a table. Whatever you use, review it regularly, especially after adding a new sending service.

    Where to publish it

    Create a TXT record named _dmarc at your domain (so the full name is _dmarc.example.com) and paste the generated value. There must be exactly one DMARC record. After DNS has updated, run our SPF, DKIM and DMARC checker on the domain to confirm it reads as you intended.

    What the generator covers

    1. 1

      Builds a valid record

      Puts the tags in the standard order, adds the mailto: prefix for you, and blocks copying while an address is invalid.

    2. 2

      Warns about risky choices

      Flags reject without reports, strict alignment, reports sent to another domain, and records long enough to need splitting.

    3. 3

      Explains each tag

      A table lists every tag in your record with its meaning, so you know what you are publishing.

    4. 4

      Shows the rollout

      A four-stage plan takes you from p=none to p=reject.

    Frequently asked questions

    What should my first DMARC record be?

    v=DMARC1; p=none; rua=mailto:an-address-you-read. It changes nothing about delivery, and it starts the reports that show who sends as your domain.

    What is the difference between quarantine and reject?

    Quarantine asks receivers to treat failing mail as suspicious, usually by putting it in spam. Reject asks them to refuse it. Both depend on the receiver choosing to follow your policy.

    What does pct do?

    It sets the share of failing mail the policy applies to. It is meant for easing in quarantine or reject: start low and raise it while reports stay clean.

    Should I use strict alignment?

    Usually not. Relaxed alignment lets subdomains match, which suits most setups. Strict alignment can make legitimate mail from third-party services fail if they use a subdomain.

    Do I need ruf?

    Not usually. Failure reports are optional, many large receivers do not send them, and they can contain parts of message content. Aggregate reports (rua) are the useful ones.

    Where do I publish the record?

    As a TXT record named _dmarc on your domain, for example _dmarc.example.com. There must be only one.

    Why are there no reports yet?

    Reports are sent once a day or so by each receiver, and only for mail they handled. Allow a couple of days after publishing, and check the address is spelled correctly and, if it is on another domain, authorised there.

    Already published a record?

    Check what receivers see for your domain: SPF, DKIM and DMARC in one run.

    Open the checker
    From the blog

    Latest analysis, trends and market data

    Start sending in minutes.

    Create an account, add your domain and send your first email.

    Get started Talk to sales