In <8028650(_at_)pamho(_dot_)net> "Roger Moser"
<Roger(_dot_)Moser(_at_)pamho(_dot_)net> writes:
Dear Andrey
If in the DNS of requested domain there 2 TXT records
(for example, there is error in my DNS:
cherezov.koenig.su text =
"v=spf1 a:ac.eserv.ru a:rainbow.koenig.ru -all"
cherezov.koenig.su text =
"v=spf1 -all"
)
RMSPF returns "none" in case of sending IP math ac.eserv.ru.
Perl implementation (Mail::SPF::Query) in this case returns 'pass':
Actually, the perl implementation sometimes will 'fail', and sometimes
'pass', depending on which SPF record it happens to pick up.
So it is not clear what should be returned, if there are multiple but valid
SPF records. But definitely it should never be 'pass'.
Agreed
Currently in such a case my routine returns 'none' (according to 3.1). But I
think it's better to return 'unknown' (according to 2.1). I will change it.
libspf appears to acts like M:S:Q and not detect this error.
libspf-alt v0.3 detects this error and returns 'none', however, I
agree that 'unknown' is probably better and I've changed it for v0.4.
Multiple SPF records is on my TODO list for the SPF test system, but I
haven't added a check for it yet.
-wayne