1. BWEZE Domains
  2. Learn
  3. Email and DNS

SPF, DKIM and DMARC: DNS records for email that arrives

The three TXT records that tell mail providers your domain's email is genuine, what each one says, and how to add them in BWEZE DNS.

Updated 14 November 2026 · Markdown

When your domain sends email, the receiving provider checks DNS to decide whether the message really came from you. Three records answer that: SPF, DKIM and DMARC. All three are TXT records, and Google asks every sender to Gmail to set up SPF or DKIM, and anyone sending in bulk to have all three.

SPF: which servers may send

An SPF record lists the servers allowed to send mail for your domain. It lives at the domain itself:

@  TXT  "v=spf1 mx include:_spf.example-mail.com -all"
  • mx allows your domain’s own mail servers.
  • include: adds a provider’s servers; your email provider gives you this value.
  • -all says mail from anywhere else fails. ~all marks it as suspicious instead.

A domain must have one SPF record. Two make SPF fail for every message. Evaluating a record may take at most 10 DNS lookups, and each include: counts, so merge rather than add.

DKIM: a signature on each message

With DKIM, your mail server signs every message, and receivers check the signature with a public key you publish in DNS. The key sits under a selector your provider chooses:

selector1._domainkey  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."

Copy the name and value your email provider shows; the key itself is long, so paste it whole.

DMARC: what to do when a check fails

DMARC ties the other two to the address people see in the From line, and says what receivers should do with mail that fails. It lives at _dmarc:

_dmarc  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.rw"
  • p=none only watches: failing mail is delivered as before, and receivers send reports to the rua address.
  • p=quarantine asks receivers to treat failing mail as spam; p=reject asks them to refuse it.

Start with p=none, read the reports for a few weeks to find every service that sends as you, then move to quarantine and reject.

Adding them in BWEZE DNS

  1. Open the zone in the BWEZE dashboard and go to Records.
  2. Add record, type TXT. For SPF leave the name as the zone apex (@); for DMARC use _dmarc; for DKIM use the name your provider gives, such as selector1._domainkey.
  3. Paste the value and save. The form warns you if a record with the same name and type already exists, because saving replaces it, which is how you avoid a second SPF record.

Sources