diff --git a/plugins/helo b/plugins/helo index 134372c..e25d2cf 100644 --- a/plugins/helo +++ b/plugins/helo @@ -521,7 +521,8 @@ sub check_name_match { my ($dns_name, $helo_name) = @_; return if !$dns_name; - return if split(/\./, $dns_name) < 2; # not a FQDN + my @dots = split(/\./, $dns_name); + return if scalar @dots < 2; # not a FQDN if ($dns_name eq $helo_name) { $self->log(LOGDEBUG, "reverse name match");