- Home
- Free tools
- DMARC generator
DMARC generator
Create your DMARC record in one minute with this free DMARC generator: choose the policy, enter the reporting address, adjust the advanced settings if needed, then copy the name and value into your DNS zone. Everything happens in your browser, with the right roadmap to reach p=reject without losing any email.
- TXT record ready to copy
- Advanced settings explained
- Nothing is sent to our servers

A complete DMARC record, with no syntax errors
The generator writes every useful tag for you and leaves out those that keep their default value.
Policy in one click
Monitoring, spam folder or rejection: choose p=none, p=quarantine or p=reject. Each option comes with a short explanation so you know which stage of the roadmap you are at.
Aggregate reports
Enter one or more rua addresses, separated by a comma. If the field stays empty, a warning reminds you that without reports you will not see who is sending in your name.
Subdomains
The sp tag gives subdomains a different policy from the main domain. It is often stricter, for example reject, when these subdomains send no email.
Gradual enforcement
A slider from 5 to 100%, in steps of 5, sets the share of messages subject to the policy. Ideal for moving to quarantine in stages.
SPF and DKIM alignment
Choose relaxed alignment, recommended in almost all cases, or strict to require the domains validated by SPF and DKIM to match the displayed address exactly.
Failure reports
If needed, add a ruf address and the sending condition: when SPF and DKIM both fail, or as soon as either one fails.
Create a DMARC record in four steps
Enter the domain
Type in your domain name. The record name, _dmarc followed by the domain, appears straight away in the result.
Choose the policy
Start with none if you are new to this, then enter the address that will receive aggregate reports from all mail providers.
Fine-tune if needed
Open the advanced settings for subdomains, the percentage applied, alignment or failure reports.
Copy and publish
Copy the name and value, create a TXT record in your DNS zone, then check the domain with our checker.
DMARC generator: what is a DMARC record for?
DMARC, short for Domain-based Message Authentication, Reporting and Conformance, is described in RFC 7489. In practice, it is a short line of text published in your domain's DNS, under the name _dmarc.your-domain.com. It answers two questions that every mail provider in the world asks when it receives an email claiming to come from you: “Is this message genuine?” and “What should I do with it if it is not?”.
To decide that a message is genuine, DMARC relies on SPF and DKIM, but it adds an essential condition: alignment. The domain validated by SPF (that of the return address) or by DKIM (that of the signature) must match the domain displayed in the “From” field, the one the recipient reads. Without this condition, a fraudster could pass SPF with their own domain while displaying yours. A DMARC generator saves you from writing this line by hand: you choose the options, and it produces a value with the correct syntax.
DMARC also brings visibility. Thanks to the reporting address you provide, the big mail providers regularly send you a summary of everything they received with your domain: which servers sent, how many messages, and whether they passed the checks. It is the only reliable way to know who is writing in your name.
What happens when a message is received
Let us take an example. A message arrives at a recipient using Gmail, with the address accounts@example.com in the “From” field. The receiving server first looks for the _dmarc.example.com record. It then checks whether the sending server is listed in the SPF of the return domain, and whether the DKIM signature is valid. If at least one of these two checks succeeds with a domain aligned with example.com, the message passes DMARC and goes on its normal way. Otherwise, the policy applies: nothing with none, spam folder with quarantine, outright rejection with reject. In every case, the result is counted in the next day's report.
Creating your record with the DMARC generator
The generator runs entirely in your browser: nothing you enter is sent to our servers. The record updates with every change, and two buttons let you copy the name and the value separately.
- Your domain. Enter it as is. If you paste an email address or a link, the tool keeps only the domain and removes the www prefix. The record name,
_dmarc.your-domain.com, appears straight away. - The policy. Three choices are offered: monitor only (none), send to spam (quarantine) or reject (reject). A short explanation accompanies each option.
- The aggregate reporting address. This is the rua tag. You can enter several addresses separated by a comma, for example yours and that of an analysis service. If you leave it blank, a warning reminds you that you will not see who is sending in your name.
- The advanced settings, collapsed by default: subdomain policy, share of messages covered (from 5 to 100%, in steps of 5), relaxed or strict SPF and DKIM alignment, failure reporting address and the condition for sending those reports.
Below the result, the tool reminds you of the right three-step roadmap and offers a link to check the domain once the record has been published. Only useful tags are written: if you leave a setting at its default value, it does not appear in the value, which keeps the record short and readable.
Every DMARC tag explained
A DMARC record is a series of tags of the form name=value, separated by semicolons. Only the first two are mandatory.
| Tag | Role | Values |
|---|---|---|
v | Version, always first | DMARC1 |
p | Domain policy | none, quarantine, reject |
sp | Subdomain policy | Same values, defaults to that of p |
pct | Share of messages subject to the policy | From 1 to 100, default 100 |
rua | Recipients of aggregate reports | mailto: followed by an address |
ruf | Recipients of failure reports | mailto: followed by an address |
fo | Condition for sending failure reports | 0 if everything fails, 1 if one check fails |
adkim, aspf | DKIM and SPF alignment | r relaxed, s strict |
Here is a typical record produced by the generator, for a domain in its ramp-up phase:
Type: TXT
Name: _dmarc.example.com
Value: v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@example.comRelaxed alignment, the default value, accepts that a message signed by news.example.com is displayed with an address in example.com, since both share the same main domain. Strict alignment requires an exact match. Relaxed suits almost all cases, strict is reserved for organisations that have complete control over all their mail flows.
Publishing the record in your DNS zone
The record is published wherever your domain's DNS is managed, often at the registrar that sold it to you or at your web host. Interfaces vary, but the process is always the same:
- Open the domain's DNS zone and choose to add a record of type TXT.
- In the name field, enter
_dmarc. Most interfaces automatically add the domain. If you enter the full name while the interface adds it too, you will get_dmarc.example.com.example.com, a very common error. - Paste the generated value. Some interfaces add the quotation marks themselves, others ask for them: do not double them.
- Keep the suggested time to live (TTL), or choose one hour during the tuning phase so that your changes take effect quickly.
- Save, then check the publication with the command below or with our SPF, DKIM and DMARC checker.
dig +short TXT _dmarc.example.comA domain must have only one DMARC record. If an old one already exists, edit it instead of adding a second one, otherwise mail providers may apply neither. If the update is slow to appear, the DNS propagation tool shows which resolvers already see the new value.
Moving from p=none to p=reject without losing emails
Going straight to reject is tempting, but risky. A business often sends emails from more services than it thinks: the invoicing software, the online shop, the appointment booking tool, the website form, the copier that sends scans. If one of them is not authenticated, its messages will be rejected overnight. The roadmap suggested by the generator limits this risk.
Step 1: observe with p=none
For the first few weeks, publish a none policy with a reporting address. Nothing is blocked. Read the reports to draw up a list of all the servers that send with your domain. For each legitimate service, add it to your SPF with the SPF generator and enable DKIM signing in its interface.
Step 2: enforce gradually with quarantine
When the reports only show failures from unknown servers, move to quarantine, first at 25% using the slider, then at 100%. Non-compliant messages then land in the spam folder: if anything has been forgotten, it will be noticed without the messages being lost.
Step 3: block with reject
Once full quarantine is stable, move to reject. Messages spoofing your domain are rejected before they even reach the recipient's mailbox. Keep reading the reports: a new service added without authentication will show up immediately.
Choosing the right reporting address
Aggregate reports are compressed XML files, usually sent once a day by each major mail provider. They do not contain the text of your emails: only counters per sending IP address, with the SPF, DKIM and DMARC results. On an active domain, they arrive by the dozen. So use a dedicated address, such as dmarc@example.com, rather than your personal mailbox.
Each line of a report reads the same way: a sending IP address, a number of messages, then the SPF, DKIM and alignment results. An IP address that belongs to your mail service and passes everything is reassuring. An IP address of your newsletter tool that fails alignment signals a setting to change at that provider, often enabling a DKIM signature in your name. An unknown IP address, on the other side of the world, that fails everything is almost always a spoofing attempt: that is exactly what the reject policy will block.
If the reporting address belongs to a domain other than the protected one, for example that of an analysis provider, that domain must authorise receipt. RFC 7489 provides for this with a verification record published on its side:
example.com._report._dmarc.provider.com TXT "v=DMARC1"Failure reports (ruf) are different: they describe a specific message and can contain headers, or even extracts, and therefore personal data. Few major mail providers still send them. They remain optional and, if you enable them, reserve them for an address with restricted access, in line with the GDPR. With fo=0, they are only sent if SPF and DKIM both fail. With fo=1, they are sent as soon as either one fails.
Errors that make DMARC ineffective
- Staying at p=none forever. This is the most widespread error. Monitoring does not protect: it prepares protection. Set yourself a date to move to quarantine.
- Forgetting the rua address. Without reports, there is no way to know whether your legitimate emails pass, and so no way to tighten the policy without taking risks.
- A subdomain policy that is too weak. A fraudster can write from
billing.example.comif sp is at none. If your subdomains send nothing, set them to reject. - A syntax error. A record that does not start with
v=DMARC1or whose policy is misspelled is ignored. The generator writes the syntax for you. - A record published in the wrong place. Placed at the root of the domain instead of
_dmarc, the record is never read by mail providers. Always check the exact name after publishing, especially if your interface adds the domain automatically. - Reports that are never opened. Receiving reports is pointless if nobody reads them. Give this task to someone, or to a service that summarises them, and set a regular time to decide on the next step.
- Believing DMARC is enough. You need at least SPF or DKIM aligned. Ideally you should have both, because DKIM survives a message being forwarded whereas SPF often fails in that case.
What next: check, test, protect
Once the record has been published, check your whole configuration with the SPF, DKIM and DMARC test, which gives an A to F grade and also checks the size of your DKIM keys. Then send a real message to our email test to see how a receiving server judges alignment in real conditions. If a legitimate message fails, our header analyzer shows which check failed and why. To display your logo next to your emails, a quarantine or reject policy is a prerequisite for BIMI, which you can check with the MTA-STS and BIMI checker.
DMARC protects your name externally, but it does not filter what arrives in your mailboxes. Passmundi receives your DMARC reports, turns them into clear tables service by service, tells you when to move to reject safely, and at the same time stops spam, viruses and phishing. Compare our plans or find all the free tools.
DMARC policies, step by step
| Policy | Effect on spoofed emails | When to use it |
|---|---|---|
| p=none | Nothing blocked, reports received | The first few weeks |
| p=quarantine, pct=25 | One message in four sent to spam | First ramp-up |
| p=quarantine | All sent to the spam folder | When the reports are clean |
| p=reject | Rejected before the inbox | The final goal |
| sp=reject | Subdomains protected | Subdomains that send nothing |
DMARC generator: your questions
How do I create a DMARC record?
Enter your domain in the generator, choose a policy and provide an address for reports. The tool shows the TXT type, the name _dmarc followed by your domain and the value to copy. Then create this record in your domain's DNS zone, at your registrar or web host, and check that it is published with a DMARC checker.
Where do I add the DMARC record in my DNS?
In your domain's DNS zone, where your MX and SPF records already are. Create a TXT record named _dmarc. Most interfaces add the domain automatically: so do not enter the full name, or you will end up with _dmarc.example.com.example.com. Paste the generated value without doubling the quotation marks.
Which DMARC policy should I start with?
Start with p=none and a reporting address. This policy blocks nothing: it lets you observe, over a few weeks, all the servers sending with your domain. Once your legitimate services are authenticated, move to quarantine, first on a share of messages, then to reject, the only policy that really prevents spoofing.
Can I go straight to p=reject?
It is possible, but risky. If a legitimate service is not authenticated, such as invoicing software or an online shop, its messages will be rejected without warning. First go through p=none to identify all your sending sources in the reports, then through quarantine. Only a domain that sends no email can move to reject from day one.
What address should I put in the rua tag?
A dedicated address, for example dmarc@your-domain.com, because reports arrive every day from many mail providers. You can enter several, separated by a comma. If the address belongs to another domain, that domain must publish an authorisation record of the form your-domain._report._dmarc, otherwise mail providers will not send the reports.
Should I enable ruf failure reports?
It is not essential. Failure reports describe each rejected message and can contain personal data, which means they must be handled carefully under the GDPR. Few major mail providers still send them. Aggregate rua reports are enough to manage your policy. If you enable ruf, use an address with restricted access.
What does relaxed or strict alignment mean?
Alignment compares the domain validated by SPF or DKIM with the domain displayed in the From field. In relaxed mode, a subdomain of the same main domain is accepted, for example news.example.com for an address in example.com. In strict mode, the match must be exact. Relaxed mode, the default value, suits almost every organisation.
Do I need SPF and DKIM for DMARC to work?
Yes, at least one of the two must be in place and aligned with your domain. A message passes DMARC as soon as SPF or DKIM is valid and aligned. Ideally you should have both: when a message is forwarded automatically, SPF often fails because the intermediate server is not authorised, whereas the DKIM signature remains valid.
I already have a DMARC record, what should I do?
Edit the existing record instead of creating a second one. A domain must publish only one DMARC record, otherwise mail providers may apply neither. Generate the new value, replace the old one in your DNS zone, then check with our checker that the domain now shows only one record.
What is the sp tag for subdomains used for?
Without an sp tag, your subdomains follow the main domain's policy. The sp tag lets you apply a different rule to them. This is useful when the main domain is still at none while the subdomains send nothing: sp=reject then prevents a fraudster from using billing.your-domain.com or any other made-up name.
Is the DMARC generator free?
Yes. The generator is free, with no sign-up and no usage limit. You can create as many records as you need, for all your domains, and come back to change your settings at each stage of the roadmap to reject. The SPF, DKIM and DMARC checker, also free, then lets you check the published result.
Is the information entered in the generator sent anywhere?
No. The DMARC generator runs entirely in your browser. The domain and reporting addresses you enter are only used to build the record shown on screen: they are not sent to any server and are not stored. Closing the page erases everything. Only the check button opens another page, if you choose to use it.
All our free tools, in one place
25 free tools, no sign-up needed, to check your email, your domain and your website. Each one gives a clear result and the steps to follow.
Email and deliverability 10
An A to F grade for your domain, with the exact fix to publish for each issue.
- SPF, DKIM and DMARC read and explained
- DMARC policy and alignment
- Fixes ready to copy
Free domain security check: SPF, DKIM, DMARC, MTA-STS, blacklists, certificate and lookalike domains. Get an A to F grade and fixes ready to copy.
- A to F grade in 20 to 40 seconds
- Fixes ready to copy
- Free weekly monitoring
Send a message to a test address and get a score out of 100: authentication, reputation, content.
Open the toolWhere your mail arrives, in what order, and whether it goes through a filter before your inbox.
Open the toolYour DMARC record in one minute, with the right policy to get started safely.
A correct SPF built from your sending services, without exceeding the ten lookup limit.
Open the toolPaste a message's headers: route, delays and authentication checks translated into plain English.
Open the toolEncryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.
Open the toolIs your IP address or domain on anti-spam lists? Thirteen lists checked.
Open the toolA professional signature in six steps, compatible with every mail app.
Open the toolDomains and DNS 6
All of a domain's records, A, MX, TXT, NS, CAA and the rest, on the resolver of your choice.
- Every record type
- A choice of seven public resolvers
- Explanations for each value
Is a change already visible everywhere? The answer from nineteen resolvers around the world.
Open the toolThe name associated with an IP address, checked in both directions, just as mail servers do.
Open the toolRegistrar, creation and expiry dates, name servers and status of a domain or an IP.
Open the toolNames close to yours that are already registered, which fraudsters could use against your customers.
Open the toolAccented domains and the xn-- form, in both directions, with detection of misleading characters.
Open the toolWebsites and security 8
An A to F grade, Core Web Vitals, image-by-image loading and advice, on mobile and desktop.
- Google metrics and server analysis
- Request waterfall and page weight
- PDF report to share
Cookies before and after consent, banner, providers and a GDPR register ready to publish.
Open the toolValidity, issuer, chain, names covered and expiry date of a certificate, on any port.
Open the toolThe redirect chain of an address and the grade of its security headers.
Open the toolYour public IP address, IPv4 and IPv6, its name, its operator and its country.
Open the toolDownload and upload speed, latency and jitter of your connection, measured live in your browser.
Open the toolRanges, masks, subnets and number of addresses of an IPv4 or IPv6 network.
Open the toolStrong passwords and passphrases, created in your browser, never sent.
Open the toolMigration and handy tools 1
Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.
Open the toolYour DMARC reports, finally readable
Passmundi receives your reports, translates them into clear tables, tells you when to move to reject, and at the same time filters spam, viruses and phishing before they reach your mailboxes.