Sender Policy Framework (SPF)
Example DNS record
- Type: TXT
- Name: pandit.tech #Use your domain
- Content: v=spf1 a mx -all
Notes
- "a": Allows IP addresses with the A/AAAA DNS records to send emails.
- "mx": Allows named domain as per MX DNS record to send emails.
- "-all" Prohibits everyone else from spoofing your email. Effectiveness depends on receiver!
- Misc: If you use a third party email service provider, they will probably ask you to set the MX records as well as "include" something in the SPF record.
- Very important: Do not use more than 10 include records. Do not use "~all" which is soft-fail.
How to measure success?
You can use SPF checker at MXToolbox or similar tools.
We use a strictly necessary technical cookie (__Host-PHPSESSID) to ensure secure browsing. No consent is required under GDPR. See our Cookie Policy and Privacy Policy for details.