From 0c698629532a04768445e112d6a678a97d4a9c42 Mon Sep 17 00:00:00 2001 From: Filippo Carletti Date: Thu, 18 Jun 2009 22:43:48 -0700 Subject: [PATCH] check_spamhelo disconnects after denying a 'helo' --- Changes | 2 ++ plugins/check_spamhelo | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 1ce1e44..ddd16e0 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ POD cleanups (Steve Kemp) + check_spamhelo disconnects after denying a 'helo' (Filippo Carletti) + 0.82 - June 2, 2009 diff --git a/plugins/check_spamhelo b/plugins/check_spamhelo index fb90b72..b45f5a2 100644 --- a/plugins/check_spamhelo +++ b/plugins/check_spamhelo @@ -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;