Technical terms with a dotted underline are explained on hover, tap or focus.
The email protocol does not check by itself whether the sender “From” really belongs to its domain. Without countermeasures anyone can send a mail with invoice@your-company.com as sender. Three DNS records close that gap: SPF, DKIM and DMARC. They cost nothing and take about an hour once you know which services send in your name.
The problem
Forged senders (spoofing) underpin invoice fraud and phishing in companies’ names. Two sides suffer: your customers receive forgeries, and your genuine mail lands in spam if recipients cannot authenticate your domain. Large mailbox providers now partly require authentication from senders; the exact thresholds depend on the provider, so check their current policies.
SPF: who may send?
SPF is a DNS TXT record listing which servers may send mail for your domain. Example for a domain sending via a mail provider:
your-company.com. TXT "v=spf1 include:_spf.mailprovider.example -all"
include:pulls in your provider’s permitted servers (the provider gives the exact value).-allmeans reject everything else.~allis the softer variant (“mark as suspicious”) and suits the test phase.- Only one SPF record per domain. Two records invalidate SPF.
- At most 10 DNS lookups (includes, a, mx, …). Many services exceed that quickly, and SPF then fails.
- SPF checks the technical sender (envelope-from), not the visible “From”. That is why DMARC is needed.
- SPF breaks on forwarding because the forwarding server is not listed.
DKIM: is the mail genuine and unchanged?
Your mail server signs outgoing mail with a private key; the public key sits in DNS at selector._domainkey.your-company.com. The recipient verifies the signature. This protects sender and content and mostly survives forwarding.
- Enable DKIM at every service sending in your name (mail host, newsletter, invoicing tool, ticket system). The provider supplies the selector and DNS record.
- Use 2048-bit keys if the provider supports them.
- Rotate keys occasionally (new selector), especially after switching providers or a suspected compromise.
DMARC: what happens to forgeries?
DMARC ties SPF and DKIM to the visible sender (alignment): at least one of the two checks must pass and match the domain in “From”. You also define what happens to failing mail and receive reports.
_dmarc.your-company.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@your-company.com"
p=none: monitor only, block nothing (starting value).p=quarantine: failing mail goes to spam.p=reject: failing mail is rejected. This is the goal.rua=: address for the daily aggregate reports (XML). Free and paid services help evaluate them; the raw reports are hard for laypeople to read.
The safe path to p=reject
- Inventory: list every service sending mail in your name. Forgotten systems (web form, printer/scanner, CRM, accounting) are the main cause of trouble.
- Set up SPF and DKIM for all of them.
- Publish DMARC with
p=noneandruaand evaluate reports for at least two to four weeks. - Add legitimate senders you find until only forgeries fail in the reports.
- Move to
p=quarantine, optionally withpct=for part of the mail first, later 100%. - Move to
p=rejectonce reports and tests are clean. - Protect subdomains that never send mail with
sp=reject; lock unused domains withv=spf1 -allandp=reject.
Typical mistakes
- Multiple SPF records or more than 10 lookups.
- Going straight to
p=rejectwithout a monitoring phase: legitimate mail from forgotten services gets lost. - DKIM enabled on the main system only, not on the newsletter tool.
- The
ruaaddress does not exist or nobody reads the reports. - Mailing lists and forwarding can break alignment; it shows up in the reports.
- DNS changes take effect with a delay (TTL). Test after every change, e.g. by mailing test accounts at large providers and checking the headers (Authentication-Results).
Want your domain reviewed or the rollout supported? I help small businesses with this.
Sources
- RFC 7208 – Sender Policy Framework (SPF)
- RFC 6376 – DomainKeys Identified Mail (DKIM) Signatures
- RFC 7489 – Domain-based Message Authentication, Reporting, and Conformance (DMARC)
- BSI – Bundesamt für Sicherheit in der Informationstechnik (Hinweise zu E-Mail-Sicherheit)
Note: Status as of 4 November 2026. The example values (domain, provider include) are placeholders. Your mail provider gives the binding record values. I could not retrieve the RFC pages in this session; the description follows generally known standard behaviour. Check large mailbox providers’ sender requirements directly with them.