check_spamhelo disconnects after denying a 'helo'

This commit is contained in:
Filippo Carletti 2009-06-18 22:43:48 -07:00 committed by Ask Bjørn Hansen
parent dec3ec4920
commit 0c69862953
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
POD cleanups (Steve Kemp)
check_spamhelo disconnects after denying a 'helo' (Filippo Carletti)
0.82 - June 2, 2009

View File

@ -23,7 +23,7 @@ sub hook_helo {
for my $bad ($self->qp->config('badhelo')) {
if ($host eq lc $bad) {
$self->log(LOGDEBUG, "Denying HELO from host claiming to be $bad");
return (DENY, "Sorry, I don't believe that you are $host.");
return (DENY_DISCONNECT, "Sorry, I don't believe that you are $host.");
}
}
return DECLINED;