SPF and DMARC Record Generator

Choose who sends mail as your domain and how servers should treat fake messages, and we write the correct record ready to copy.

Try:
DNS · example.comTXT @v=spf1 mx include:_spf.google.com ~allCopymxinclude:_spf.google.com~allOne correct record

Generator

SPF record TXT @

Choose who sends mail as your domain.

DMARC record TXT _dmarc

Decide what servers do with fake mail in your name.

How the tool works

Four steps, all free and with no sign-up.

Pick who sends as you

Hosting, Google, Microsoft and any other service.

Pick the policy

Monitor, spam or reject fake mail.

Copy the record

Ready, written exactly right.

Paste it into DNS

Then confirm it with the email checker.

Where do I add the record?

Both records are TXT records, added wherever your domain's DNS is managed: our client area if your nameservers are with us, as in managing DNS records, the Zone Editor in cPanel, or your DNS provider.

RecordName (Host)TypeValue
SPF@ or the domainTXTThe generator output
DMARC_dmarcTXTThe generator output

An important SPF rule

A domain has exactly one SPF record. If you already have one, do not add a second; build one record covering every service and replace the old one. Two records make the check fail at receiving servers.

Which DMARC policy should I start with?

  • none: monitoring only; it stops nothing. Good for a few weeks of reports.
  • quarantine: failing mail goes to spam. A safe middle step for most companies.
  • reject: failing mail is refused. The strongest protection, once all your services pass.

Ready examples for common setups

Your setupSuitable SPF record
All your mail is on your hostingv=spf1 mx ~all
Hosting, plus a site that sends form emailsv=spf1 a mx ~all
Mail on hosting and Google Workspace togetherv=spf1 mx include:_spf.google.com ~all
Mail on Microsoft 365 onlyv=spf1 include:spf.protection.outlook.com ~all

Adjust the example to the services that actually send as you: invoicing, newsletter tools and website forms. Every service sending for your domain must be in the record.

After adding it

Wait for the record to propagate according to its TTL, then check the result with the email domain checker. If your mail is on cPanel, Email Deliverability creates SPF and DKIM automatically without writing them by hand.

SPF examples by mail service

If you send from several services, put every include in the same record.

You send fromAdd to the record
cPanel hosting onlyv=spf1 +a +mx ~all
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
SendGridinclude:sendgrid.net
Mailchimp Transactionalinclude:spf.mandrillapp.com

Hosting plus Google: v=spf1 +a +mx include:_spf.google.com ~all

Key terms

Short definitions of what you meet along the way.

SPF
A TXT record listing the servers allowed to send as your domain.
DMARC
A policy telling receivers what to do with mail failing SPF and DKIM, and where to send reports.
SPF include
Adds another provider's servers to your record, such as a mailing service. Keep the whole record under 10 DNS lookups.
~all and -all
~all means "mark other mail as suspicious"; -all means "reject it". Start with ~all until all your senders are listed.
p=none, quarantine, reject
DMARC levels: monitor only, send failures to spam, then reject them. Step up after reading reports.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Do I need both SPF and DMARC?

Yes. SPF says who sends as you, DKIM signs messages, and DMARC ties them together and decides what happens to failing mail. Full protection needs all three.

What do mx and a mean in SPF?

mx allows your domain's mail servers to send; a allows the website's own address, useful if your site sends form and order emails.

What is the rua report address for?

Major mail providers send you periodic reports showing who sends as your domain, so you can spot forgotten services or spoofing.

Does the generator store my domain or data?

No. The record is built in your browser and nothing is sent to our servers.

How long until the new record shows up?

It depends on the TTL and your DNS provider, usually minutes to hours. Follow it with the DNS checker.

Can a domain have more than one SPF record?

No. Two records cancel each other. Combine all senders into one.

When should I move from p=none to reject?

After weeks of reading reports and confirming every service sending as you passes.

Company email on hosting that knows these details

Email hosting with cPanel and Arabic support to help with your records.

Contact us on WhatsApp