Anyone can write any address into the "From" line of an email. What decides whether that email reaches an inbox is three DNS records that the receiving mail server looks up: SPF, DKIM and DMARC. If they are missing or too permissive, a stranger can send an invoice "from" your accounts team and nothing stops it.
This post shows our own three records, what each one says, and one mistake we found and fixed. You can run the same check on your domain in a few seconds, without an account: the free email spoofing check.
DMARC: the record that tells receivers what to do
DMARC is a TXT record at _dmarc. in front of your domain. This is ours, looked up with dig through the product:
;; ANSWER SECTION:
_dmarc.cyber-sec-pro.com. 300 IN TXT "v=DMARC1; p=quarantine; rua=mailto:76790b60de854e34ac07bbca9b17041b@dmarc-reports.cloudflare.net"
Three parts matter:
p=quarantinetells a receiving server: if a message claims to be from us and fails the checks, put it in spam.p=rejectwould tell it to refuse the message outright.p=nonetells it to do nothing, and only report.- There is no
pct=, so the policy applies to all mail (the default is 100). rua=is where receivers send daily reports of who sent mail in our name. Ours go to Cloudflare, which turns them into a readable summary.
A p=none record is a common half-step. It is how you are supposed to start, so you can read the reports before enforcing anything. But on its own it protects nothing: forged mail is delivered as if the record were not there.
We use quarantine, not reject. Moving to reject is the stronger setting, and the next step for us once the reports have stayed clean for longer.
SPF: who may send for you
SPF is a TXT record on the domain itself that lists the servers allowed to send its mail. Ours:
v=spf1 include:_spf.mx.cloudflare.net -all
The -all at the end means "nothing else may". A record ending in ~all only marks other senders as suspicious, and +all allows everyone, which is the same as having no record. SPF has a limit of 10 DNS lookups; ours uses one. A record that needs more than 10 is treated as an error by receivers, and our check counts them for you.
DKIM: a signature on each message
DKIM signs every message with a private key; the public key sits in DNS under a name called a selector. Ours are brevo1 and brevo2, the provider that sends our account emails. DNS cannot list selectors, so any checker (ours included) can only try common names. "Not found" means "not at the names we tried", not "none exists".
The record we had to delete
On 29 September 2026 we moved our account emails to a new provider. Reading our DNS that day, we found records for two services we no longer used: a DKIM key for one old email provider, and sending records for another.
A leftover DKIM key is not harmless. It belongs to an account at that provider. Anyone who controls that account can send mail signed with it, and that mail passes DMARC for your domain, because the signature is valid. We deleted both sets of records the same day.
If you have changed email providers, look at every _domainkey record and every include: in your SPF, and ask of each one: do we still send through this?
Check yours
- Run the free email spoofing check on your domain. It reads public DNS only and sends no email.
- If it says DMARC is missing or
p=none, start with the record it suggests, read the reports for a few weeks, then move toquarantine. - Remove what you no longer use.
The check gives a verdict and the record to publish. Publishing it is a change in your DNS provider, and only you can make it.