What is SPF?
Email authentication can be highly technical and extremely confusing. Even the most seasoned security professionals need help both navigating this space and explaining it in digestible yet accurate terms to non-technical colleagues.
At Return Path,Â we believe clarity is essentialÂ when it comes to communicating the value of email security.
In this three-part blog series, weâ€™ll explain the most important email authentication protocolsâ€”SPF (Sender Policy Framework), DKIM (Domain Keys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting & Conformance)â€”in plain English. Weâ€™ll start with SPF.
But before we do,Â itâ€™s important to understand the vulnerabilities of email messages.
Two â€śFromâ€ť Addresses
Email messages contain two â€śfromâ€ť addresses: the â€śenvelope fromâ€ť (e.g., return path or mfrom) and the â€śheader fromâ€ť (e.g., the friendly from).
The â€śenvelope fromâ€ť is the return addressâ€”it tells mail servers where to return, or bounce, the message back to. Itâ€™s contained in the hidden email message header, which includes technical details servers use to to understand who the message is for, what software was used to compose it, etc.
Email messages contain two â€śfromâ€ť addresses: the â€śenvelope fromâ€ť and the â€śheader fromâ€ťÂ
The â€śheader fromâ€ť address is an address contained in the From: field of an email, which is visible to all email users.
Both of these addresses can be spoofed by cybercriminals relatively easily. Thatâ€™s where email authentication comes in.
SPF (Sender Policy Framework)
What it is:Â SPF is an email authentication protocol that allows the owner of a domain to specify which mail servers they use to send mail from that domain.
How it works:Â Brands sending email publish SPF records in the Domain Name System (DNS). These records list which IP addresses are authorized to send email on behalf of their domains.
During an SPF check, email providers verify the SPF record by looking up the domain name listed in the â€śenvelope fromâ€ť address in the DNS. If the IP address sending email on behalf of the â€śenvelope fromâ€ť domain isnâ€™t listed in that SPF record, the message fails SPF authentication.
Brands sending emailâ€¦list which IPs are authorized to send email on behalf of their domainsÂ
Why it matters:Â An SPF-protected domain is less attractive to phishers, and is therefore less likely to be blacklisted by spam filters, ensuringÂ legitimate email from that domain is delivered.
But SPF has a few major problems:
- Keeping SPF records updated as brands change service providers and add mail streams is difficult due to lack of visibility.
- Just because a message fails SPF, doesnâ€™t mean it will always be blocked from the inboxâ€”itâ€™s one of several factors email providers take into account.
- SPF breaks when a message is forwarded.
- SPF does nothing to protect brands against cybercriminals who spoof the display name or â€śheader fromâ€ť address in their message, which is the more frequently spoofed â€śfromâ€ť address since itâ€™s the address most visible to the email recipient.