فارسی

Build SPF and DMARC Records for a Domain

Pick the services that send email for your domain and get ready-to-paste SPF and DMARC records, with a plain explanation of what each option changes.

Use this tool in your browser without installing software.

About this tool

SPF is the list of servers and services allowed to send email using your domain. Receivers read that list, so a message from anywhere else is easier to spot as forged. DMARC goes one step further: it tells receivers what to do with a message that fails SPF and DKIM — nothing, spam, or reject — and where to send reports about those failures. This page builds both records from your choices, in the shape a DNS panel expects. Keep in mind that a domain may have only one SPF record: replace the old one instead of adding a second. Publish them as TXT entries, and once they propagate, read the result back from public DNS with the checker.

How to use it

  1. 1

    Add the domain if you know it, so the host name and report address fill themselves in, then tick the services that send email for it.

  2. 2

    Copy the SPF record into the TXT entry for the domain. If a server or service is missing from the list, add its include or IP address in the fields below.

  3. 3

    Switch to the DMARC tab, choose a policy and set the report address. Once the records propagate, read both back from public DNS with the checker.

Frequently asked questions

What is the difference between SPF and DMARC?

SPF says which servers may send email for your domain. DMARC says what should happen to a message that fails SPF or the DKIM signature, and where reports about those failures go. A DMARC record without SPF still publishes, but it will almost always fail; the two make sense together.

Why is only one SPF record allowed?

The standard gives each domain a single SPF record. Two TXT records starting with v=spf1 make some receivers ignore both and others report an error. If you use several services, list them all inside that one record with include. A change is not instant either: it can take minutes to hours to appear.

What is include, and why does the count matter?

An include points at another service’s SPF record, and each one counts as a DNS lookup. The standard limit is ten lookups; beyond that a receiver may ignore the whole record. ip4 and ip6 do not count, so a service with fixed addresses is cheaper to list that way.

Should I use -all or ~all?

-all is strict and rejects anything outside the list, which is right once you are sure every sender is listed. ~all is softer and only marks the message, so it is the safer start. ?all does almost nothing and only records that SPF exists.

Should I start DMARC with none?

If you are new to this, yes: p=none with a report address is the best first step. It only watches and blocks nothing, so it cannot break legitimate mail. After a few weeks, when the reports show the senders you expect, move to quarantine and then reject.

Where do I get rua, and where does my data go?

rua is the mailbox that receives the reports; create a real address such as dmarc@yourdomain. The reports are XML and add up quickly, so !10m sets a size cap per report. Everything is built in your browser and nothing is stored, but the domain and email address become public in DNS, so keep sensitive details out of them.