Lawful high-risk sectors welcome · Complaint procedure published · .com $12.49/year, same price every year
Language: English
Search a domain

Guide · checked 16 November 2026

How do you set up SPF, DKIM and DMARC?

Last updated: · 5 min read

Quick answer

How do you set up SPF, DKIM and DMARC?

To set up SPF, DKIM and DMARC, publish one SPF TXT record listing the services that send your mail, add the DKIM key your mail provider gives you, then a DMARC TXT record at _dmarc, starting with p=none. At Reefregis, the DNS tab has templates for 5 mail providers plus an SPF + DMARC template that prepare these records.

In brief
  • SPF: one TXT record at the domain, starting v=spf1, ending -all or ~all; 10 DNS lookups at most.
  • DKIM: a TXT (or CNAME) record at selector._domainkey, value given by the mail provider.
  • DMARC: a TXT record at _dmarc, starting v=DMARC1; p=none, then quarantine, then reject.
  • Templates: Google Workspace, Microsoft 365, Proton Mail, Zoho Mail, Fastmail, SPF + DMARC, No email.
  • A domain that sends no mail: the No email template sets null MX, SPF -all and DMARC reject.

What does each record do, and where does it live?

Three TXT records, three jobs; DMARC only works once SPF or DKIM passes for the same domain.

SPF, DKIM and DMARC compared: where each record is published, what it starts with and what it proves, per RFC 7208, 6376 and 7489
RecordPublished atStarts withWhat it proves
SPFThe domain itself (@), TXTv=spf1Which servers may send mail for the domain
DKIMselector._domainkey, TXT or CNAMEv=DKIM1 (key in p=)That the message was signed by the domain and not altered
DMARC_dmarc, TXTv=DMARC1; p=What receivers should do when SPF and DKIM fail to align, and where to send reports

What are the steps to add the three records?

Six steps in the DNS tab of a Reefregis domain that uses its nameservers. With Cloudflare or another host, add the same records there.

  1. List every service that sends your mail

    The mailbox provider, plus the CRM, newsletter tool, support desk and the app that sends deposit or withdrawal notices. Each one needs to be in SPF or sign with DKIM.

  2. Open Templates in the DNS tab

    In My domains, open the domain, the DNS tab, then Templates. Pick your mail provider; fill the verification and DKIM values it shows in its admin panel.

  3. Check the SPF record

    Keep a single TXT record that starts v=spf1. If one exists, the template keeps it as it is: add an include for each extra sender and stay within 10 lookups.

  4. Add the DKIM record

    Paste the value as given, without quotes; long values are split automatically. Microsoft 365 and Proton Mail use CNAME targets for DKIM selectors.

  5. Publish DMARC in monitor mode

    Use the SPF + DMARC template, or add a TXT record at _dmarc with p=none and a rua address for reports. Review the template preview, then click Save changes.

  6. Tighten the policy

    Read the daily reports for a few weeks; once every sender passes, move p=none to quarantine, then reject.

Example records for yourbrand.casino
@           TXT  v=spf1 include:_spf.mailprovider.example ~all
mail._domainkey  TXT  v=DKIM1; k=rsa; p=MIIBIjANBgkqh...
_dmarc      TXT  v=DMARC1; p=none; rua=mailto:[email protected]

Why do high-risk brands need SPF, DKIM and DMARC first?

Casino, betting, adult and crypto brands are copied by fraudsters, and a domain without DMARC lets anyone send mail that claims to come from it. A fake bonus email or withdrawal notice in a player's inbox damages the brand and can bring complaints against your domain that are really about the impersonator.

The records also help delivery: receivers check them when deciding what to do with a message, and DMARC tells them what to do when the checks fail. A CBD shop sending order confirmations or a sportsbook sending password resets needs those messages to arrive.

If the domain will never send mail, say so: the No email template publishes a null MX, SPF -all and DMARC reject, which tells receivers to refuse mail sent in its name. Sector pages such as iGaming domain registration and CBD domain registration list the extensions sold.

What is the best way to set up SPF, DKIM and DMARC without blocking your own mail?

The best way to set up SPF, DKIM and DMARC safely is to start DMARC at p=none, read the reports, and only then move to quarantine and reject. RFC 7489 describes none as a request for no specific action, quarantine as treating failing mail as suspicious, and reject as refusing it during delivery.

Three mistakes cause most failures:

  • Two SPF records: RFC 7208 forbids more than one; receivers then return a permanent error.
  • Too many lookups: include, a, mx, ptr, exists and redirect count toward the limit of 10; ip4 and ip6 do not.
  • A forgotten sender: the newsletter or CRM not in SPF and not signing with DKIM fails DMARC once the policy is strict.

DMARC passes when SPF or DKIM passes and is aligned with the From domain; in the default relaxed mode, a sub-domain of the same organisational domain counts. According to Reefregis's price list, the DNS hosting that holds these records is free with every domain, a .casino included at $148.99 a year.

What about email forwarding and existing MX records?

Reefregis email forwarding and an outside mail provider cannot share the same domain: forwarding needs the domain to have no MX records of its own. If MX records are set, the Forwarding tab says the domain already receives mail and asks you to remove them in DNS or use your provider's forwarding.

Forwarding suits a domain that only receives, such as a contact@ address passed to an existing inbox; each destination confirms once by email. For sending from the domain, use a real mail provider and the three records above. Then add DNSSEC so the records themselves cannot be forged in transit.

Frequently asked questions

Can a domain have two SPF records?

No. RFC 7208 allows one SPF record per name; merge them into one with several include terms.

Which DMARC policy should I start with?

p=none with a rua address, then quarantine and reject once the reports show every sender passing.

Where do I get my DKIM key?

From your mail provider's admin panel; the provider generates the key pair and shows the public value or CNAME targets.

Does Reefregis set up SPF, DKIM and DMARC for me?

The DNS tab templates prepare the records from the values you paste; nothing is sent until you click Save changes.

Verdict
  • To set up SPF, DKIM and DMARC: one SPF record, the provider's DKIM key, DMARC at p=none, then tighten.
  • Domain that sends no mail: the No email template locks it down in one step.
Sources (3)
  1. RFC 7208: Sender Policy Framework (SPF) — IETF (read 2026-11-16)
  2. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures — IETF (read 2026-11-16)
  3. RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC) — IETF (read 2026-11-16)

Register a domain with free DNS and mail templates

SPF, DKIM, DMARC, CAA and DNSSEC from the same DNS tab.

.com $12.49/year · .bet $23.99/year · crypto

Search a domain