Is there a document that explains the reasoning for
error (return) codes?
currently (from spfquery):
my $ExitCode = 255;
$ExitCode=0 if $passfail eq "pass";
$ExitCode=0 if $passfail eq "softfail";
$ExitCode=1 if $passfail eq "fail";
$ExitCode=2 if $passfail eq "error";
$ExitCode=3 if $passfail eq "unknown";
(code for none, neutral gets 255)
also it doesn't appear "guess" interacts with
the final scoring. ($ExitCode)
Query.pm indicates
# The result of evaluating a SPF record associated with a domain is one of:
#
# none - the domain does not have an SPF record.
#
# neutral - domain explicitly wishes you to pretend it had no SPF record.
#
# unknown - a permanent error -- such as missing SPF record
# during "include" or "redirect", parse error, unknown
# mechanism, record loop
#
# error - some type of temporary failure, usually DNS related
#
# softfail - explicit softfail --- please apply strict antispam checks
#
# fail - explicit fail --- MTA may reject, MUA may discard
#
# pass - explicit pass --- message is not a forgery
Softfail gets the same score as Pass but the comments in
Query.pm indicate "please apply strict antispam checks"
If it is scored the same as Pass, it becomes moot.
I've modified spfquery to show a difference (for testing)
between each result:
$code = 0 if $passfail eq "pass";
$code = 1 if $passfail eq "neutral";
$code = 2 if $passfail eq "none";
$code = 3 if $passfail eq "error";
$code = 4 if $passfail eq "unknown";
$code = 5 if $passfail eq "softfail";
$code = 6 if $passfail eq "fail";
but still not sure where guess comes in and what weight
to the total score should be applied
TIA
Regards
Greg Cirino
___________________________________
Cirelle Enterprises Inc.
603-425-2221
www.cirelle.com Website Design
www.cirelle.net ProSpeed High Speed Dial-up - 5 Times Faster
www.cedata.com Web, FTP, Email Hosting Services
www.mlsbot.com MLS IDX Services
When You Want It Done Well, Just Call Cirelle
It's not just a Rhyme... There's a Reason!