LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2014, 10:37 AM   #1
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
SPF question


Let's say we have an SPF record that looks like this:

Code:
v=spf1 include:example.com -all
If example.com's spf record exists but has a softfail for all (I.E. ~all at the end of their spf record), what will happen if the sender IP doesn't match anything in the record? Will it fail with -all in my spf record? Or will it accept but mark because example.com has a softfail?
 
Old 12-05-2014, 12:29 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
SPF records are evaluated strictly left-to-right. The "include" mechanism literally includes the result of the evaluation of the SPF record from the specified domain, so if that domain has an SPF record but there's no match, the next mechanism is evaluated.

If example.com has a softfail (~all) at the end of its record and you have a fail (-all) in your record, it will work like you had specified both, with the softfail first ("~all -all"). In that scenario, due to the combination of strict left-to-right evaluation and the fact that "all" is always a match, only the softfail would ever be processed.

Be aware that an include mechanism referencing a domain without an SPF record is a "permanent error", which some mail servers treat as a "fail".

BTW, your example exactly matches the one used in the "record syntax" section at the openspf.com web site, which is as close to an authoritative source as you can get.

Last edited by Ser Olmy; 12-05-2014 at 12:31 PM.
 
2 members found this post helpful.
Old 12-05-2014, 12:37 PM   #3
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Original Poster
Rep: Reputation: 55
Thank you very much for your reply. the example.com in this scenario is Google. I'm kind of surprised that they would have a soft fail in their SPF records.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding SPF records jim.thornton Linux - Server 1 05-28-2013 11:50 PM
SRS and SPF sencha Linux - Enterprise 0 02-02-2012 08:14 AM
Starting spf-milter: spf-milter: Milter for 'spf-milter' not found in /etc/mail/sendm Niceman2005 Linux - Software 1 07-06-2009 03:07 AM
SPF record question Sheridan Linux - Networking 0 02-16-2008 02:48 AM
SPF record macadam Linux - Security 4 05-03-2005 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration