spf: exit relayclients while loop when client_ip doesnt match
Checking an invalid address kept looping.
This commit is contained in:
parent
2ef465e7aa
commit
8f7494f0cb
@ -69,7 +69,7 @@ sub hook_mail {
|
|||||||
if exists $relay_clients{$client_ip};
|
if exists $relay_clients{$client_ip};
|
||||||
return (DECLINED, "SPF - relaying permitted")
|
return (DECLINED, "SPF - relaying permitted")
|
||||||
if exists $more_relay_clients->{$client_ip};
|
if exists $more_relay_clients->{$client_ip};
|
||||||
$client_ip =~ s/\d+\.?$//; # strip off another 8 bits
|
$client_ip =~ s/\d+\.?$// or last; # strip off another 8 bits
|
||||||
}
|
}
|
||||||
|
|
||||||
my $scope = $from ? 'mfrom' : 'helo';
|
my $scope = $from ? 'mfrom' : 'helo';
|
||||||
|
Loading…
Reference in New Issue
Block a user