SPF
There is no list of servers allowed to send mail for example.com. Any server in the world can send email "from" this domain.
No recordexample.com. TXT "v=spf1 include:_spf.google.com -all"One record only. Replace the include with your mail provider (Microsoft 365: include:spf.protection.outlook.com) and add every service that sends mail for you.
How attackers use it
# Any cheap server can do this. No access to your mail is needed.
swaks --server mx.your-client.com \
--from "accounts@example.com" --to "finance@your-client.com" \
--header "Subject: New bank details for invoice 4471" \
--body "From today please pay to our new IBAN."
# The client's server looks up example.com, finds no rule to reject
# the fake — and puts it in the inbox next to your real emails.