DMARC Record Generator
With An SPF Builder Beside It
The DMARC record maker takes simple options and creates the records you will use today. Select a policy and report email address for DMARC, or select the services you use to deliver your mail for SPF, then check both records for any errors that may cause problems with your emails.
- FreePrice
- DMARC, SPFBuilds
- NoneSign-up
- In your browserRuns
DMARC and SPF Record Generator
Ready-to-publish TXT records, checked as you build them
Services that send mail as your domain
@| Check | Result | What it means |
|---|
Ready. Tick the services that send your mail.
Check before you publish
One wrong line in a server, robots or DNS file can hide pages from search or stop mail from arriving. Test the result on a staging copy, or with a checker, before it goes live.
How to fix the errors this tool finds
Short guides, each with a quick video, for the issues this check can flag.
SPF Record: How to Stop Your Emails Landing in SpamWhat an SPF record says, how to build and add one in DNS, and how to merge services without breaking it.
12 minutes of reading · video guide inside
DMARC Record: How to Add One the Right WayWhat a DMARC record does, where it must go in DNS, and how to move from p=none to p=reject safely.
11 minutes of reading · video guide inside
Why A DMARC Record Generator Saves Your Email
When you have SPF, DKIM and DMARC set up on your email server, other email servers will be able to tell if an email is real or fake. This means that if a stranger sends email claiming to be from your domain, it will not get through. But, if you don’t use SPF, DKIM and DMARC then spoofed email will get through and you are much more likely to have your real email end up in spam.
Since 2024, Gmail and Yahoo both need DMARC for all bulk mail senders. This means that DMARC records are now mandatory for businesses large and small and why the SPF builder is located next to the DMARC builder.
What SPF Does
SPF finds the mail servers authorized to send emails on behalf of your domain. This identification is made through one single TXT record, which starts with "v=spf1" and then lists all of your mail services and your own servers. The SPF record will also contain an instruction for other senders.
The catch is that there is a maximum of ten DNS queries per build, as determined by the number of times each service you add to your build includes other services. As such, the build system maintains an ongoing estimate of the total DNS queries to be performed during the build process.
What DMARC Adds
DMARC lets receiving mail servers know what action to take if an email fails both SPF and DKIM checks: either allow the delivery of the email, mark it as spam, or block it from being delivered. In addition to letting mail servers know how to handle failing emails, DMARC allows mail servers to give reports back to you, which will show you every email service that is sending email under your domain name. These rules for DMARC are found in RFC 7489.

Begin with None, End with Reject
A new DMARC record should start at p=none. Nothing changes for your mail, but the reports begin to arrive. After two to four weeks, once every real sender passes, switch to quarantine, and later on to reject.

The most classic mistake you can make when setting up SPF records is to set p=reject on day one. A lost newsletter or billing system suddenly finds all of its email rejected.
Which DNS Name Holds Each Record
SPF is placed directly onto the domain (often written as "@" in a DNS control panel). DMARC is placed on a specific host name ("_dmarc"), so for example.com, it will be located at _dmarc.example.com. The generator will give you the correct host name for each record.

Checking The Result
Once the records are published, run your domain through our DNS records checker. It reads SPF, DMARC, DKIM and CAA live and counts the real SPF lookups.
On this page
- The tool
- Why A DMARC Record Generator Saves Your Email
- Working With the DMARC Record Generator, Start to Finish
- What Sets This DMARC Record Generator Apart
- Rules For SPF And DMARC Records
- Six Email Authentication Mistakes
- DMARC And SPF Questions People Ask
- Denwix Tools for Domains and Mail
Keep going
The DMARC and SPF Record Generator in Action
This brief video shows each step from start to finish. Choose your language below, and switch on captions if they help.
Working With the DMARC Record Generator, Start to Finish
A few choices, one record, and a table that tells you if anything is off.
Type your domain
The host names and the report checks then use your real domain.
Build SPF first
Click on each service that will be sending emails on your behalf, and then add your own mail servers and select what type of end result you want.
Then build DMARC
Start with a policy of none and a report address, then tighten it later.
Publish and check
For each of these records, add as a TXT record to the host that is specified, and verify with your DNS checker.
What Sets This DMARC Record Generator Apart
Writing the record is easy. Knowing it will work is the useful part.
SPF and DMARC built on one page
DMARC depends on SPF, so building them side by side keeps them consistent.
Lookup count in view
Each ticked service adds its nested lookups to an estimate, so you see the ten-lookup limit coming.
Common senders listed
Google Workspace, Microsoft 365, Zoho, Mailchimp, SendGrid and so on, each have their own correct include.
Checks as you build
Invalid addresses, missing reports, a policy stuck on none: each is flagged with what to do.
Report authorisation explained
The system will tell you the extra DNS record required by the other domain when you send reports to it.
Nothing leaves your tab
The records will be created in your web browser and no data about how you use your e-mail account will ever be transmitted to any other location.
Rules For SPF And DMARC Records
Eight habits that keep your mail trusted and delivered.
- Publish exactly one v=spf1 TXT record for each domain. Two records starting v=spf1 make both invalid, so merge them into one.
- Stay under ten lookups. Add up each include, a and mx lookup. Past ten, however, SPF fails for every message.
- End SPF with ~all or -all. Never +all, which authorises the whole internet to send as you.
- Start DMARC at none. Collect reports first, so no genuine sender gets blocked by surprise.
- Always set a report address. Without rua, DMARC is a policy nobody can see working.
- Move up to reject one step at a time. Quarantine first, reject later, each only after the reports stay clean.
- Sign with DKIM too. DMARC will pass when either SPF or DKIM passes. SPF does not work well with emails that are forwarded, whereas DKIM continues to function.
- Run the check again each time you add a new sending service. All new newsletter and CRM tools need an include to make sure their mails will be delivered properly.
Six Email Authentication Mistakes
Each of these looks harmless in a DNS panel and costs real mail.
Two SPF records
Added by two different setup guides, and together they cancel each other out.
Eleven lookups
One include too many, and receivers stop reading the record halfway.
p=none forever
This policy was intended to be an initial measure, but we continue to get fraudulent email after many years.
Reports to a dead mailbox
Nobody reads them, so the move to quarantine never happens.
Publishing the DMARC record under the wrong name
Published on the domain itself instead of _dmarc, where receivers never look.
Forgetting a sender
The billing system or help desk mails as you, and suddenly its messages bounce.
DMARC And SPF Questions People Ask
What does a DMARC record tell receiving mail servers?
A TXT record located at _dmarc on your own domain gives instructions to the receiving server about how to process emails that fail either SPF or DKIM checks and where to send the reporting data.
Should SPF be in place before I publish DMARC?
Set up either SPF or DKIM before setting up DMARC. Having both is better.
Which DMARC policy suits a domain that is just starting out?
The beginning should be at P=NONE, with a report-collecting address. After a few weeks of no bad reports, move on to QUARANTINE, and finally to REJECT.
In which DNS panel do these Denwix records go?
In either case, the TXT record should be added to the DNS settings where you have registered your domain (your Registrar), where you host your website (your Webhost), or through a third-party service such as Cloudflare.
What does the tilde in ~all tell mail servers?
This indicates that any email sent from an unknown server will be considered suspicious instead of being blocked. As such, this is a secure option during testing.
Why does SPF stop working after ten DNS lookups?
SPF may cause at most ten DNS lookups, counted through every include. Beyond that, the check fails for every message.
Why is the lookup count an estimate?
The provider changes its records occasionally. After being published, the DNS checker finds how many actual records exist.
Can DMARC reports land in a mailbox on another domain?
Yes, as long as that domain publishes a record stating that it is willing to accept those records. The generator gives you the specific type of record that it needs.
When will the records start working?
The timing of delivery is based upon how quickly the recipient’s DNS records update (TTL). It could take anywhere from a few minutes to as long as a day for some recipients.
Where does the domain I type into Denwix go?
No. The Denwix generator works locally and transmits nothing.
Denwix Tools for Domains and Mail
The writing of the records was only one step in the process. The remainder of the checks were completed using other Denwix tools.
- DNS Records Checker
Every record for a domain, with SPF, DMARC, DKIM and CAA checked.
- Domain Age Checker
Registration date, expiry and availability across extensions.
- IP Subnet Calculator
Ranges and masks for the servers you list in SPF.
Ready to Stop Spoofed Mail From Your Domain?
Build your SPF and DMARC records in a minute and publish them today. This DMARC record generator costs nothing, needs no login and keeps every value in your browser.