Meng Weng Wong wrote:
Can you give me an example domain?
dechtech.com
Query.pm already ignores
non-SPF TXT records. What version of Mail::SPF::Query are
you using?
I tried it with 1.997 and fallbacks didn't work with this domain, but did when
I tried it with a domain with no TXT records.
# squish multiline responses into one first.
foreach (@txt) {
s/^"(.*)"$/$1/;
s/^\s+//;
s/\s+$//;
if (/^v=spf1(\s.*|)$/i) {
$txt .= $1;
}
}
This is filtering @txt into a scalar, $txt. The decision about whether to
check for fallback records is based on @txt though:
> if ($query->{error} || $query->{last_dns_error} eq 'NXDOMAIN' || ! @txt) {
> # try the fallbacks.
Cheers, Paul.