Sign In
Terry Zink's Cyber Security Blog
Discussing Internet security in (mostly) plain English
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
About
Share this
RSS for comments
RSS for posts
Atom
Search Form
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tag Cloud
Authentication
Backscatter
Botnets
Economics
Education
Entertainment
Facebook
Foreign language
Hacking
Legal
Malware
Miscellaneous
Net Neutrality
Outbound
Pages
Privacy
Reputation
Security
Social Networking
Spam
Stories
Monthly Archives
Archives
February 2012
(6)
January 2012
(21)
December 2011
(6)
November 2011
(12)
October 2011
(13)
September 2011
(12)
August 2011
(15)
July 2011
(14)
June 2011
(11)
May 2011
(11)
April 2011
(11)
March 2011
(11)
February 2011
(9)
January 2011
(1)
December 2010
(19)
November 2010
(16)
October 2010
(18)
September 2010
(16)
August 2010
(16)
July 2010
(16)
June 2010
(16)
May 2010
(16)
April 2010
(21)
March 2010
(25)
February 2010
(17)
January 2010
(13)
December 2009
(13)
November 2009
(17)
October 2009
(18)
September 2009
(13)
August 2009
(12)
July 2009
(15)
June 2009
(12)
May 2009
(13)
April 2009
(10)
March 2009
(9)
February 2009
(9)
January 2009
(16)
December 2008
(15)
November 2008
(16)
October 2008
(13)
September 2008
(19)
August 2008
(16)
July 2008
(16)
June 2008
(15)
May 2008
(14)
April 2008
(15)
March 2008
(17)
February 2008
(15)
January 2008
(14)
December 2007
(16)
November 2007
(12)
October 2007
(16)
September 2007
(16)
August 2007
(8)
July 2007
(15)
June 2007
(16)
May 2007
(15)
April 2007
(11)
March 2007
(10)
February 2007
(9)
January 2007
(20)
December 2006
(14)
November 2006
(8)
October 2006
(14)
September 2006
(13)
August 2006
(22)
July 2006
(12)
Sender authentication part 13: Some SPF odds and ends
MSDN Blogs
>
Terry Zink's Cyber Security Blog
>
Sender authentication part 13: Some SPF odds and ends
Sender authentication part 13: Some SPF odds and ends
tzink
11 Jul 2007 8:47 PM
Comments
0
Let’s tie up a couple of loose ends (but by no means all the loose ends) when it comes to SPF. I would like to interpret the below SPF record:
v=spf1 a/24 mx/24 ptr ?all
Now that we are experts in SPF syntax, reading this is a snap. The version of SPF is 1.0, return a pass if the transmitting IP is in the same /24 net block as the domain’s A-record, or if the transmitting IP is in the same /24 net block as the domain’s mx record. Also, return a pass if any of the A-records for the hostnames are the same as the transmitting IP, or if a valid hostname ends in the same domain as the sender. If no match is made, fall back to SPF Neutral.
Does any of this sound familiar? It should, because it’s the almost the same algorithm that Gmail uses in their Best-Guess SPF. Recall that best guess matches on one of the following:
1. If the mx-record or A-record is in the same range, return a pass. This is the same as a/24 mx/24, except that Gmail is more restrictive by requiring an exact match rather than looking at a range.
2. If the reverse DNS matches the domain of the sending IP, return a pass. This is the same as the ptr mechanism.
Gmail’s other technique, PTR zone, is somewhat similar but not analogous. So, Gmail is implementing a modified form of SPF in an attempt to authenticate IPs.
Secondly, a question naturally arises about whether or not SPF can protect against spoofing the message From address, ie, the From address in the message headers.
The answer is that it does not, at least the way SPF was designed. It’s supposed to work on the envelope sender, the MAIL FROM in the SMTP command. The technical issues associated with protecting the "From:" header are more complicated.
In order to use the "From:" header as the subject of authentication with SPF, we need to be familiar with the following:
- mailing lists
- /etc/aliases-style forwarding
- MUA "resend this message to"
- web-generated email
- the Sender header
- the Resent-Sender and Resent-From headers
Looking at protection of the From: header will be the subject of the next few authentication posts when we take a look at SenderID.
0 Comments
Authentication
Leave a Comment
Name
Comment
Please add 2 and 2 and type the answer here:
Post