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.
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"
mxallows your domain’s own mail servers.include:adds a provider’s servers; your email provider gives you this value.-allsays mail from anywhere else fails.~allmarks 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=noneonly watches: failing mail is delivered as before, and receivers send reports to theruaaddress.p=quarantineasks receivers to treat failing mail as spam;p=rejectasks 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
- Open the zone in the BWEZE dashboard and go to Records.
- 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 asselector1._domainkey. - 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.