SlideShare a Scribd company logo
Sender Policy Framework
Help Protect Your Inbox From Basic SPAM
Wordup Pompey 20th February 2019
Scott McKeown
What is SPF?
• An eMail authentication method
• An open standard
• Simple to enable
Short History Of SPF
• 2000 First mention of an SPF idea
• 2002 SPF-like specification published
• 2003 RMX & DMP specifications merged
• 2004 Renamed to ‘Sender Policy Framework’ from ‘Sender Permitted
From’ and MARID task group formed
• 2005 MARID group collapsed and revert to ‘classic’ SPF idea
• 2006 Experimental RFC published for SPF
• 2014 RFC-7208 published
How does SPF Work?
Write an eMail eMail Server SPF Record Check
SPF Fail
eMail Server SPF Pass
Where does it go?
DNS Zone file as a Text (TXT) Entry.
SPF Record Make Up
• Three Sections
• Domain or Subdomain
• SPF Version
• The Mechanisms (Rules)
The Domain or Subdomain
SPF Sections
SPF Version
SPF Sections
The Mechanisms (Rules)
• Prefix
• + Pass
• - Fail
• ~ Softfail
• ? Neutral
• Can be applied to ANY of the SPF Mechanisms (Rules)
The Mechanisms (Rules)
• all
• ip4
• ip6
• a
• mx
• ptr
• exists
• include
Examples
Allow domain's MXes to send mail for the domain, prohibit all others
v=spf1 mx –all
Allow any IPv6 address between 1080::8:800:0000:0000 and
1080::8:800:FFFF:FFFF
v=spf1 ip6:1080::8:800:200C:417A/96 –all
The current-domain is used
v=spf1 a –all
Use External Mail Server
v=spf1 mx mx:deferrals.domain.com –all
Include Other Domains SPF Rules
v=spf1 include:example.com -all
Lets Write Our Domain Rules
Sender Policy Framework​
Example Of Blocked eMail
Feb 20 11:58:04 ms1 postfix/policy-spf[3987]: Policy action=550 Please see
http://www.openspf.net/Why?s=helo;id=redithosting.co.uk;ip=5.2.18.104;r=ms1
.redit.co.uk
Feb 20 11:58:04 ms1 postfix/smtpd[2236]: NOQUEUE: reject: RCPT from
unknown[5.2.18.104]: 550 5.7.1 <yoqiihld@redithosting.co.uk>: Recipient
address rejected: Please see
http://www.openspf.net/Why?s=helo;id=redithosting.co.uk;ip=5.2.18.104;r=ms1
.redit.co.uk; from=<> to=<yoqiihld@redithosting.co.uk> proto=ESMTP
helo=<redithosting.co.uk>
Feb 20 12:26:08 ms1 postfix/policy-spf[6230]: Policy action=550 Please see
http://www.openspf.net/Why?s=mfrom;id=users@email.address;ip=95.105.89.221;
r=ms1.redit.co.uk
Feb 20 12:26:08 ms1 postfix/smtpd[2236]: NOQUEUE: reject: RCPT from
unknown[95.105.89.221]: 550 5.7.1 <support@redit.co.uk>: Recipient address
rejected: Please see http://www.openspf.net/Why?s=mfrom;id=
users@email.address;ip=127.0.0.1;r=ms1.redit.co.uk;
from=<AndrewMorgan@ufanet.ru> to=<support@redit.co.uk> proto=ESMTP
helo=<127.0.0.1.public.ip.address>
References
• https://en.wikipedia.org/wiki/Sender_Policy_Framework
• http://www.openspf.org/
• https://www.gov.uk/government/publications/email-security-
standards/sender-policy-framework-spf
• https://tools.ietf.org/html/rfc7208
Sender Policy Framework​

More Related Content

PDF
The Art of VoIP Hacking - Defcon 23 Workshop
PDF
Palo Alto Networks y la tecnología de Next Generation Firewall
PPTX
Packet sniffing
PPTX
Packet Sniffer
PPTX
Firewall
PPTX
PPTX
PPTX
Information security
The Art of VoIP Hacking - Defcon 23 Workshop
Palo Alto Networks y la tecnología de Next Generation Firewall
Packet sniffing
Packet Sniffer
Firewall
Information security

What's hot (20)

PDF
Arp protokolu ve guvenlik zafiyeti
PDF
Access Control Presentation
PPTX
Introduction of firewall slides
PPTX
RSA algorithm
PDF
Information Security Awareness Deck and Training
PPTX
Anomalies Detection: Windows OS - Part 1
PDF
16 palo alto ssl decryption policy concept
PPT
PPT
Snort
PDF
ARM CoAP Tutorial
PPTX
Lecture 22 What inside the Router.pptx
PPTX
Golden Ticket Attack - AD - Domain Persistence
PPTX
Firewall
PPTX
Server hardening
PDF
Footprinting
PPTX
Zen map
PPTX
Wireshark Basic Presentation
PPTX
Firewall presentation
PPTX
Firewall and Types of firewall
PDF
Siber Saldırı Aracı Olarak DDoS
Arp protokolu ve guvenlik zafiyeti
Access Control Presentation
Introduction of firewall slides
RSA algorithm
Information Security Awareness Deck and Training
Anomalies Detection: Windows OS - Part 1
16 palo alto ssl decryption policy concept
Snort
ARM CoAP Tutorial
Lecture 22 What inside the Router.pptx
Golden Ticket Attack - AD - Domain Persistence
Firewall
Server hardening
Footprinting
Zen map
Wireshark Basic Presentation
Firewall presentation
Firewall and Types of firewall
Siber Saldırı Aracı Olarak DDoS
Ad

Similar to Sender Policy Framework​ (20)

PDF
Actual Fortinet FCP_FML_AD-7.4 FortiMail Administrator Certification Practice...
PPTX
Secure360 - Attack All the Layers! Again!
PPT
Information Security Lesson 4 - Baselines - Eric Vanderburg
PPTX
Fighting Email Abuse with DMARC
PPT
Chapter 6 overview
PDF
A1-2-Keynote/ 1. Email Authentication Standards
PPTX
CoLabora - Exchange Online Protection - June 2015
PDF
Isa2004 Configuration Guide
PPTX
Jabber design and configuration
PDF
Chapter 6-Securing the Local Area Network.pdf
PPSX
Exam 70 412-confgure network services(4knet.ir)
PDF
Attack All the Layers: What's Working during Pentests (OWASP NYC)
PDF
Attack All the Layers - What's Working in Penetration Testing
PDF
Attack All The Layers - What's Working in Penetration Testing
PDF
BlackHat Hacking - Hacking VoIP.
PPT
Btech admission in india
PPT
Btech admission in india
PDF
BRKSEC-2494.pdf
PDF
Fighting Abuse with DNS
PPTX
Slide Deck – Session 9 – FRSecure CISSP
Actual Fortinet FCP_FML_AD-7.4 FortiMail Administrator Certification Practice...
Secure360 - Attack All the Layers! Again!
Information Security Lesson 4 - Baselines - Eric Vanderburg
Fighting Email Abuse with DMARC
Chapter 6 overview
A1-2-Keynote/ 1. Email Authentication Standards
CoLabora - Exchange Online Protection - June 2015
Isa2004 Configuration Guide
Jabber design and configuration
Chapter 6-Securing the Local Area Network.pdf
Exam 70 412-confgure network services(4knet.ir)
Attack All the Layers: What's Working during Pentests (OWASP NYC)
Attack All the Layers - What's Working in Penetration Testing
Attack All The Layers - What's Working in Penetration Testing
BlackHat Hacking - Hacking VoIP.
Btech admission in india
Btech admission in india
BRKSEC-2494.pdf
Fighting Abuse with DNS
Slide Deck – Session 9 – FRSecure CISSP
Ad

Recently uploaded (20)

PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PDF
Introduction to the IoT system, how the IoT system works
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Database Information System - Management Information System
PPTX
Internet___Basics___Styled_ presentation
DOCX
Unit-3 cyber security network security of internet system
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
artificial intelligence overview of it and more
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PPT
250152213-Excitation-SystemWERRT (1).ppt
PDF
Sims 4 Historia para lo sims 4 para jugar
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Module 1 - Cyber Law and Ethics 101.pptx
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
Introduction to the IoT system, how the IoT system works
presentation_pfe-universite-molay-seltan.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Exploring VPS Hosting Trends for SMBs in 2025
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
E -tech empowerment technologies PowerPoint
Database Information System - Management Information System
Internet___Basics___Styled_ presentation
Unit-3 cyber security network security of internet system
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
SASE Traffic Flow - ZTNA Connector-1.pdf
artificial intelligence overview of it and more
Power Point - Lesson 3_2.pptx grad school presentation
250152213-Excitation-SystemWERRT (1).ppt
Sims 4 Historia para lo sims 4 para jugar

Sender Policy Framework​

  • 1. Sender Policy Framework Help Protect Your Inbox From Basic SPAM Wordup Pompey 20th February 2019 Scott McKeown
  • 2. What is SPF? • An eMail authentication method • An open standard • Simple to enable
  • 3. Short History Of SPF • 2000 First mention of an SPF idea • 2002 SPF-like specification published • 2003 RMX & DMP specifications merged • 2004 Renamed to ‘Sender Policy Framework’ from ‘Sender Permitted From’ and MARID task group formed • 2005 MARID group collapsed and revert to ‘classic’ SPF idea • 2006 Experimental RFC published for SPF • 2014 RFC-7208 published
  • 4. How does SPF Work? Write an eMail eMail Server SPF Record Check SPF Fail eMail Server SPF Pass
  • 5. Where does it go? DNS Zone file as a Text (TXT) Entry.
  • 6. SPF Record Make Up • Three Sections • Domain or Subdomain • SPF Version • The Mechanisms (Rules)
  • 7. The Domain or Subdomain SPF Sections
  • 9. The Mechanisms (Rules) • Prefix • + Pass • - Fail • ~ Softfail • ? Neutral • Can be applied to ANY of the SPF Mechanisms (Rules)
  • 10. The Mechanisms (Rules) • all • ip4 • ip6 • a • mx • ptr • exists • include
  • 11. Examples Allow domain's MXes to send mail for the domain, prohibit all others v=spf1 mx –all Allow any IPv6 address between 1080::8:800:0000:0000 and 1080::8:800:FFFF:FFFF v=spf1 ip6:1080::8:800:200C:417A/96 –all The current-domain is used v=spf1 a –all Use External Mail Server v=spf1 mx mx:deferrals.domain.com –all Include Other Domains SPF Rules v=spf1 include:example.com -all
  • 12. Lets Write Our Domain Rules
  • 14. Example Of Blocked eMail Feb 20 11:58:04 ms1 postfix/policy-spf[3987]: Policy action=550 Please see http://www.openspf.net/Why?s=helo;id=redithosting.co.uk;ip=5.2.18.104;r=ms1 .redit.co.uk Feb 20 11:58:04 ms1 postfix/smtpd[2236]: NOQUEUE: reject: RCPT from unknown[5.2.18.104]: 550 5.7.1 <yoqiihld@redithosting.co.uk>: Recipient address rejected: Please see http://www.openspf.net/Why?s=helo;id=redithosting.co.uk;ip=5.2.18.104;r=ms1 .redit.co.uk; from=<> to=<yoqiihld@redithosting.co.uk> proto=ESMTP helo=<redithosting.co.uk> Feb 20 12:26:08 ms1 postfix/policy-spf[6230]: Policy action=550 Please see http://www.openspf.net/Why?s=mfrom;id=users@email.address;ip=95.105.89.221; r=ms1.redit.co.uk Feb 20 12:26:08 ms1 postfix/smtpd[2236]: NOQUEUE: reject: RCPT from unknown[95.105.89.221]: 550 5.7.1 <support@redit.co.uk>: Recipient address rejected: Please see http://www.openspf.net/Why?s=mfrom;id= users@email.address;ip=127.0.0.1;r=ms1.redit.co.uk; from=<AndrewMorgan@ufanet.ru> to=<support@redit.co.uk> proto=ESMTP helo=<127.0.0.1.public.ip.address>
  • 15. References • https://en.wikipedia.org/wiki/Sender_Policy_Framework • http://www.openspf.org/ • https://www.gov.uk/government/publications/email-security- standards/sender-policy-framework-spf • https://tools.ietf.org/html/rfc7208