How SPF, DKIM & DMARC Helps Prevent Email Spoofing - Part 1 (SPF)
SPF DKIM and DMARC are three tools that can be used to help prevent spoofing and validate email authenticity for your email service or domain and I’m going to explain how they work and show you how to set them up in this in this lesson here.
SPF
SPF stands for Sender Policy Framework.
The high level of SPF is a mechanism that tells servers receiving email servers what servers are allowed to send mail on behalf of your domain it uses an SPF record published in DNS to do that. so when you're setting up SPF you'll publish your SPF record to DNS to the sending organization's DNS server and then when an email is sent out from your domain the receiving server receives it and performs an SPF record lookup by querying DNS for the SPF record of the sending domain to verify whether it came from an authorized sending server or IP address and then if there's no SPF record or if the SPF record of the domain specifies that the server that the message came from was not authorized to send on behalf of that domain then the message can be rejected or marked as spam or if it passes SPF validation then the message can be accepted for delivery by the receiving email server and then sent placed into the recipient's mailbox. There there are some other details when configuring SPF. For example when considering things like sub domains or other servers that are allowed to send such as smart hosts and similar to that.
Every SPF record starts with a V equals that's the version number SPF one they're all they're all the same and then now again this is a very simplified version of an SPF record there are a lot of other tags and things you can put in an SPF record but for purposes of simplicity this SPF record specifies the version SPF the IP address that is allowed to send mail on behalf of the domain example.com and then whether all messages should be sent from that specific IP address or if there are some exceptions based on smart hosts and things like that.
The SPF record must contain each of these sections:
Example including your own IP address and domain:
Recommended by LinkedIn
v=spf1 ip4:1.2.3.4/32 include:spf. protection.outlook.com A:yourdomain.invalid -all
Replace the ip4 entry of 1.2.3.4/32 with your mail server IPv4 address and yourdomain.invalid with your domain.
Once the SPF record has been written, publish the SPF record (TXT record) to the authoritative DNS server for your domain. Instructions on how this can be done will differ from each domain provider.
If you have multiple sending addresses, the following external links may be used for additional formatting and guidance:
Depending on your current SPF records Time to Live (TTL), this may take up to 24 hours or more to propagate.
There are several benefits of using Sender Policy Framework (SPF) for email:
Head of Solution Consulting - @ John Keells IT | Cloud Strategy, Consulting Services
2yGood work, keep it up
Modern Work & Security Architect | Digital Transformation | Microsoft 365 | Microsoft Azure
2yThank you, very useful article