From 8e437ec3055da48ca69665f07eb695d7a8a249ea Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 26 Mar 2013 22:14:26 -0400 Subject: [PATCH] helo: stop processing after first match --- plugins/helo | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/helo b/plugins/helo index 203f29b..55a4285 100644 --- a/plugins/helo +++ b/plugins/helo @@ -411,6 +411,7 @@ sub no_forward_dns { next unless $rr->type =~ /^(?:A|AAAA)$/; $self->check_ip_match( $rr->address ); $hits++; + last if $self->connection->notes('helo_forward_match'); } if ( $hits ) { $self->log(LOGDEBUG, "pass, forward DNS") if $hits;