Discussion:
SPF Scores
Michel Vaillancourt
2006-09-08 16:27:08 UTC
Permalink
I set up SPF for Wolfstar.ca yesterday, and I've been reading a bit off the website about SPF itself. WRT to SA, I'm interested in knowing if folks have adjusted their "stock" SPF scores or if they've done some custom rules to lever this technology?
--
--Michel Vaillancourt
Wolfstar Systems
www.wolfstar.ca
Matt Kettler
2006-09-09 02:11:17 UTC
Permalink
Post by Michel Vaillancourt
I set up SPF for Wolfstar.ca yesterday, and I've been reading a bit off the website about SPF itself. WRT to SA, I'm interested in knowing if folks have adjusted their "stock" SPF scores or if they've done some custom rules to lever this technology?
I make use of the SPF features of SA, but I've not adjusted any of the
scores.

Why, or to what end, would you want to adjust the scores?
Michael Scheidell
2006-09-09 10:37:49 UTC
Permalink
-----Original Message-----
Sent: Friday, September 08, 2006 10:11 PM
To: Michel Vaillancourt
Cc: Spamassassin List (E-mail)
Subject: Re: SPF Scores
Why, or to what end, would you want to adjust the scores?
Because if there is a DNS failure, SA triggers SPF_SOFTFAIL, which has a
very high score higher then HARD_FAIL in face!)

So, SPF_SOFTFAIL either needs to be scored LOW, or (even if the RFC's
say a DNS failure is a SOFT_FAIL) I am tired of explaining to users that
get email from AOL and their buggy, overloaded DNS servers.

(yes, I looked up the ip address and pulled a txt record from aol, and
yes, the ips are in the range, and yes, I have gotten SPF_SOFTFAIL from
domains without any spf records)

So, score SPF_HARDFAIL* high enough to be at least half your score, and
drop SPF_SOFTFAIL to only about 20% of your score.

Ie: if you are looking for a 6 to be marked 'spam', set HARD to 3, set
soft to 1.5.

Also, logically, why is spt_helo_fail a 0, and softfail 2+? And FAIL
lower then SOFTFAIL,
I know the tests seem to indicate that spammers are using spf records
:-( but logically, it doesn't make sense (especially in the light of
the rfc's that say a legitimate email, with a server with valid spf
records with a slow or overloaded dns server on their end or YOUR end
should be marked as a SPF_SOFTFAIL)

50_scores.cf:score SPF_PASS -0.001
50_scores.cf:score SPF_HELO_PASS -0.001
50_scores.cf:score SPF_FAIL 0 1.333 0 1.142
50_scores.cf:score SPF_HELO_FAIL 0
50_scores.cf:score SPF_HELO_NEUTRAL 0
50_scores.cf:score SPF_HELO_SOFTFAIL 0 2.078 0 2.432
50_scores.cf:score SPF_NEUTRAL 0 1.379 0 1.069
50_scores.cf:score SPF_SOFTFAIL 0 1.470 0 1.384

local.cf:
SPF_HELO_SOFTFAIL 1.2
SPF_FAIL 3

If your score is 5:
1 and 2.5

Or if you have slow dns servers, set soft to .5 or 0.
Daryl C. W. O'Shea
2006-09-09 11:17:05 UTC
Permalink
Post by Michael Scheidell
-----Original Message-----
Sent: Friday, September 08, 2006 10:11 PM
To: Michel Vaillancourt
Cc: Spamassassin List (E-mail)
Subject: Re: SPF Scores
Why, or to what end, would you want to adjust the scores?
Because if there is a DNS failure, SA triggers SPF_SOFTFAIL, which has a
very high score higher then HARD_FAIL in face!)
So, SPF_SOFTFAIL either needs to be scored LOW, or (even if the RFC's
say a DNS failure is a SOFT_FAIL) I am tired of explaining to users that
get email from AOL and their buggy, overloaded DNS servers.
(yes, I looked up the ip address and pulled a txt record from aol, and
yes, the ips are in the range, and yes, I have gotten SPF_SOFTFAIL from
domains without any spf records)
Bug 5077 includes a one line patch to fix this. It'll be included in
3.1.6 but is trivial to apply by hand now.

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5077
Post by Michael Scheidell
So, score SPF_HARDFAIL* high enough to be at least half your score, and
drop SPF_SOFTFAIL to only about 20% of your score.
Ie: if you are looking for a 6 to be marked 'spam', set HARD to 3, set
soft to 1.5.
Also, logically, why is spt_helo_fail a 0, and softfail 2+? And FAIL
lower then SOFTFAIL,
I know the tests seem to indicate that spammers are using spf records
:-( but logically, it doesn't make sense (especially in the light of
the rfc's that say a legitimate email, with a server with valid spf
records with a slow or overloaded dns server on their end or YOUR end
should be marked as a SPF_SOFTFAIL)
From what I've seen, most domains use soft fail so any spam forging
those domains will hit soft fail. Many domains that use hard fail end
up hard failing their own ham. Thus the scores ended up the way they are.

I wouldn't increase the score for *any* of the SPF tests. Especially if
any of your users might (might because you never know what the heck your
users are doing) are forwarding mail to the accounts you are processing.

IMO, SPF in the current landscape is really only reliable for
whitelisting purposes. There are currently way too many organizations
sending mail on behalf of third parties using that third party's address
in the envelope.


Daryl
Michael Scheidell
2006-09-10 13:27:38 UTC
Permalink
Post by Daryl C. W. O'Shea
Post by Michael Scheidell
(yes, I looked up the ip address and pulled a txt record from aol, and
yes, the ips are in the range, and yes, I have gotten SPF_SOFTFAIL from
domains without any spf records)
Bug 5077 includes a one line patch to fix this. It'll be included in
3.1.6 but is trivial to apply by hand now.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5077
Thanks, I'll apply the patch and revert back to default scores
--
Michael Scheidell, CTO
SECNAP Network Security / www.secnap.com
***@secnap.net / 1+561-999-5000, x 1131
BG Mahesh
2006-09-11 02:05:15 UTC
Permalink
Post by Daryl C. W. O'Shea
Bug 5077 includes a one line patch to fix this. It'll be included in
3.1.6 but is trivial to apply by hand now.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5077
I seem to have multiple versions of SPF.pm on my box,

./perl5/site_perl/5.8.6/Mail/SpamAssassin/Plugin/SPF.pm
./perl5/site_perl/5.8.6/i386-linux-thread-multi/Net/DNS/RR/SPF.pm
./perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Plugin/SPF.pm

Should I be deleting
perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Plugin/SPF.pm which seems to be
very old when compared to
perl5/site_perl/5.8.6/Mail/SpamAssassin/Plugin/SPF.pm ?
--
--
B.G. Mahesh
http://www.greynium.com/
http://www.oneindia.in/
http://www.click.in/ - Free Indian Classifieds
Continue reading on narkive:
Loading...