IT lexicon › Security › SPF record

SPF record

Security På svenska → Updated: 2026-05-29

Sender Policy Framework — a DNS record that lists which servers are allowed to send email for a domain. Receiving servers check it to reveal forged senders. One of three pillars (with DKIM and DMARC) against email spoofing.

Mechanic: the domain owner publishes a TXT record in DNS (v=spf1 include:_spf.google.com ~all) that enumerates approved sending IPs/servers. When an email comes in the recipient looks up the sender domain's SPF record and checks whether the sending server's IP is included — if it's not, the email is probably forged. Limitation: SPF only checks the "envelope from" (the envelope), not the visible From address the user sees → an attacker can pass SPF but still show a fake sender, and SPF breaks on forwarding. That's why SPF isn't enough on its own — it's combined with DKIM (a signature) and tied together by DMARC (which actually checks the visible sender and says what the recipient should do). Fundamental email authentication. Related to DKIM and DMARC.

← Back to the lexicon