Skip to content

Commit

Permalink
increase dns lookup limit to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Jan 10, 2024
1 parent 9e32cb3 commit f9b2837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/lib/Mail/MIMEDefang/SPF.pm
Expand Up @@ -70,7 +70,10 @@ sub md_spf_verify {
return;
}

my $spf_server = Mail::SPF::Server->new();
# RFC 4408 defines the maximum number of terms (mechanisms and modifiers) per SPF check that perform DNS look-ups
# to 10.
# In practice 10 lookups are not enough for some domains.
my $spf_server = Mail::SPF::Server->new(max_dns_interactive_terms => 20);
my ($spfres, $helo_spfres);
$spfmail =~ s/^<//;
$spfmail =~ s/>$//;
Expand Down

0 comments on commit f9b2837

Please sign in to comment.