Home › Developer Tools › DMARC Record Generator

DMARC Record Generator

Pick a policy and where reports should go, and get a ready-to-publish DMARC TXT record with the exact host name. Every tag is explained in plain words, and the tool warns about common mistakes such as missing report addresses or external report domains.

Last updated:

Policy (p)
Reports

Daily XML summaries from Gmail, Outlook, Yahoo and others. Separate several addresses with commas.

Send failure reports when (fo)
Advanced: subdomains, rollout, alignment, interval

Lower values roll out quarantine or reject gradually; the rest is treated one level softer.

Import an existing DMARC record

Your DMARC record


        

    Add it to your DNS

    Type
    TXT
    Host / Name
    _dmarc
    _dmarc.example.com
    Value
    TTL
    3600 (or your host's default)

    What each tag means

      Advertisement
      Advertisement

      How to use the DMARC Record Generator

      1. Enter your domain. The host name for the record (_dmarc.yourdomain) updates automatically.
      2. Choose a policy. Start with p=none to monitor, then move to quarantine and reject once reports show all your real mail passes.
      3. Add a report address (rua) so you receive daily aggregate reports from Gmail, Outlook, Yahoo and others.
      4. Adjust advanced options if needed: subdomain policy, pct rollout, strict alignment and forensic reports.
      5. Copy the TXT record and create it at your DNS host with the host name _dmarc.

      DMARC tags reference

      TagValuesDefaultMeaning
      vDMARC1requiredVersion; must be the first tag
      pnone, quarantine, rejectrequiredPolicy for the domain; must be the second tag
      spnone, quarantine, rejectsame as pPolicy for subdomains
      pct0–100100Share of failing mail the policy is applied to
      ruamailto: URIs, comma-separatednoneWhere aggregate reports go
      rufmailto: URIs, comma-separatednoneWhere failure (forensic) reports go
      fo0, 1, d, s (colon-separated)0When to generate failure reports
      adkimr, srDKIM alignment mode: relaxed or strict
      aspfr, srSPF alignment mode: relaxed or strict
      riseconds86400Requested interval between aggregate reports
      rfafrfafrfFailure report format (only one is defined, so it is rarely written)

      A safe rollout plan

      1. Week 0: publish SPF and enable DKIM signing in every service that sends as your domain.
      2. Weeks 1–4: v=DMARC1; p=none; rua=mailto:…. Read the aggregate reports (a DMARC report service makes them readable) and fix every legitimate source that fails.
      3. Next: p=quarantine; pct=25, then raise pct to 100 while watching reports.
      4. Finally: p=reject. Keep the rua address so you notice new services that someone sets up without SPF or DKIM.

      How DMARC passes

      A message passes DMARC when at least one of these is true: SPF passes and the Return-Path domain aligns with the From domain, or a DKIM signature verifies and its d= domain aligns with the From domain. With relaxed alignment, mail.example.com aligns with example.com because both share the organizational domain; with strict alignment they must be identical. Forwarded mail often breaks SPF, which is why DKIM is important before you move to reject. You can inspect real results in a message's Authentication-Results header with the Email Header Analyzer.

      Frequently asked questions

      What is a DMARC record?

      DMARC (RFC 7489) is a TXT record published at _dmarc.yourdomain. It tells receiving mail servers how to handle messages whose visible From domain fails authentication (no aligned SPF or DKIM pass), and where to send reports about mail using your domain.

      Which DMARC policy should I start with?

      Start with p=none and a rua address. This changes nothing for delivery but sends you reports showing every server that sends mail as your domain. Once all legitimate sources pass SPF or DKIM with alignment, move to p=quarantine and then p=reject.

      Where do I add the DMARC record?

      Create a TXT record with the host or name _dmarc (your DNS host adds the domain, giving _dmarc.example.com) and paste the generated value. Only one DMARC record is allowed per domain.

      What is the difference between rua and ruf?

      rua receives aggregate reports: daily XML summaries of how many messages each IP sent and whether they passed. ruf receives forensic (failure) reports about individual failing messages; few large providers send them because they may contain personal data.

      What does alignment (adkim and aspf) mean?

      Alignment checks that the domain verified by SPF or DKIM matches the From domain. Relaxed (r, the default) accepts subdomains of the same organizational domain, such as mail.example.com for example.com. Strict (s) requires an exact match.

      Do Gmail and Yahoo require DMARC?

      Since February 2024, Gmail and Yahoo require bulk senders (around 5,000 or more messages a day to their users) to publish a DMARC record, at minimum p=none, along with SPF and DKIM. A DMARC record is good practice for every domain that sends email.

      Why do I need an extra record for an external report address?

      If the rua or ruf address is on a different domain, that domain must agree to receive reports by publishing a TXT record named yourdomain._report._dmarc.theirdomain with the value v=DMARC1. DMARC reporting services usually publish this for you.

      Are all the tools on FreeToolCabin tested for quality and accuracy?

      Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

      Related tools

      SPF Record GeneratorBuild a valid SPF TXT record from mail providers, IPs and includes, with a lookup-count check.SPF Record CheckerLook up a domain's SPF record, count nested DNS lookups, find errors and test a sender IP.Email Header AnalyzerPaste raw email headers to trace every server hop, see delays and check SPF, DKIM and DMARC.DNS LookupLook up A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records with TTLs over secure DNS.Email ValidatorCheck email lists and spot disposable addresses.Website Down CheckerCheck if a website is down for everyone.Deep Link GeneratorCreate links that open directly in apps.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.User Agent ParserSee your user agent and parse any UA string into browser, OS, engine and device.HTTP Status CodesSearch every HTTP status code with plain-English meanings, causes, fixes and RFC references.Subnet CalculatorCalculate IPv4 network, broadcast, host range, masks and host count, and split subnets.Bulk URL OpenerOpen a list of URLs in new tabs at once or in batches, with cleanup, dedupe and delay.API Request TesterSend GET, POST, PUT and DELETE requests with headers and a body, then inspect the response.WebSocket TesterConnect to a ws:// or wss:// server, send messages and watch a timestamped live log.WHOIS LookupLook up who registered a domain or IP: registrar, creation and expiry dates, name servers, status.Mailto Link GeneratorBuild encoded mailto: links with cc, bcc, subject and body, plus HTML code and a QR code.WhatsApp Link GeneratorCreate wa.me click-to-chat links with a pre-filled message, button HTML and a QR code.Basic Auth Header GeneratorCreate an Authorization: Basic header from a username and password, or decode one.Common Ports ListSearchable TCP/UDP port number list with service, protocol and description, filterable by range.DMARC CheckerLook up a domain's DMARC record, explain every tag, grade the policy and get fix suggestions.IP Geolocation LookupFind the country, city, ISP, ASN and time zone of any IP address or domain, with a map.Reverse DNS LookupFind the PTR hostname of any IPv4 or IPv6 address, one at a time or hundreds in bulk.CIDR to IP RangeConvert IPv4 or IPv6 CIDR blocks to first/last IP, mask and host count, and export IP lists.DNS Propagation CheckerCompare DNS answers and TTLs from Cloudflare, Google, Quad9, AdGuard and NextDNS side by side.Domain Availability CheckerCheck if domain names are available across .com, .io, .ai and more, with registrar and expiry.MAC Address LookupFind the vendor of a MAC address or OUI, check multicast and random bits, look up many at once.MX LookupFind a domain's mail servers: MX priority, host, IP addresses and the email provider.Uptime SLA CalculatorTurn 99.9% uptime into allowed downtime per day, month and year, or downtime into uptime %.Website Speed TestTest page speed with Lighthouse: performance score, Core Web Vitals and fixes, mobile or desktop.ASN LookupLook up an AS number or IP: network owner, country, registry, abuse contact and announced prefixes.Bandwidth CalculatorEstimate monthly website bandwidth (GB) and the Mbps you need from page views and page size.CNAME LookupFollow a hostname's full CNAME chain to its final IP addresses, with TTLs and CDN detection.CORS TesterSend GET, POST or OPTIONS from your browser to any API and see whether CORS allows it and why not.DKIM Record CheckerLook up a domain's DKIM key by selector (or auto-detect), check key type, bit length and tags.DKIM Record GeneratorCreate a DKIM RSA key pair in your browser with the TXT record, selector host and private key PEM.DMARC Report AnalyzerRead DMARC aggregate XML reports (.xml, .gz, .zip): sources, SPF/DKIM alignment and pass rates.Domain Age CheckerSee how old a domain is, when it was registered and when it expires. Bulk check up to 50.Email Deliverability CheckerGrade a domain's MX, SPF, DMARC, DKIM, BIMI and MTA-STS records in one report with fixes.Subnet Mask Cheat SheetInteractive /0 to /32 table of subnet masks, wildcards and host counts with details per prefix.TXT Record LookupLook up a domain’s DNS TXT records and see which are SPF, DMARC, DKIM or verification tokens.VLSM CalculatorSplit a network into variable-length subnets sized to the hosts each one needs.YouTube Timestamp Link GeneratorMake YouTube links that start at a set time, embed start/end codes and lists of timestamps.Email ObfuscatorHide an email address from spam bots with HTML entities, a JavaScript mailto link or reversed CSS text.Email PermutatorGenerate every common business email format from a first name, last name and company domain.HTTP Header ParserPaste raw HTTP headers to get a table explaining each one plus a security headers grade.IP Blacklist CheckerCheck an IPv4 address against 21 public spam blocklists (DNSBLs) and see listed or clean.IP Range to CIDRTurn a start and end IP into the shortest list of CIDR blocks, for IPv4 and IPv6.IPv6 Subnet CalculatorIPv6 prefix to network, range, address count and /64s, and split it into child subnets.Link in Bio Page GeneratorCreate a link-in-bio page with avatar, bio, links and theme, then download it as one HTML file.NS LookupFind a domain's authoritative nameservers with their IPs, SOA record and DNS hosting provider.Social Share Link GeneratorMake share links and buttons for Facebook, X, LinkedIn, Reddit, Pinterest, WhatsApp and email.
      See all 52 Network, DNS & Email Tools →