From 0fe884209e7c1a0fbb054f6ffc6bae0b4e261d07 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 23 Jun 2012 00:05:01 -0400 Subject: [PATCH] check_spamhelo: remove, deprecated by helo --- config.sample/plugins | 2 +- plugins/check_spamhelo | 34 ---------------------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 plugins/check_spamhelo diff --git a/config.sample/plugins b/config.sample/plugins index 4e351be..9e6d9d2 100644 --- a/config.sample/plugins +++ b/config.sample/plugins @@ -40,7 +40,7 @@ rhsbl dnsbl badmailfrom badrcptto -check_spamhelo +helo # sender_permitted_from # greylisting p0f genre,windows diff --git a/plugins/check_spamhelo b/plugins/check_spamhelo deleted file mode 100644 index 3b60a0a..0000000 --- a/plugins/check_spamhelo +++ /dev/null @@ -1,34 +0,0 @@ -#!perl -w -=head1 NAME - -check_spamhelo - Check a HELO message delivered from a connecting host. - -=head1 DESCRIPTION - -Check a HELO message delivered from a connecting host. Reject any -that appear in the badhelo config -- e.g. yahoo.com and aol.com, which -neither the real Yahoo or the real AOL use, but which spammers use -rather a lot. - -=head1 CONFIGURATION - -Add domains or hostnames to the F configuration file; one -per line. - -=cut - -sub hook_helo { - my ($self, $transaction, $host) = @_; - ($host = lc $host) or return DECLINED; - - 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_DISCONNECT, "Sorry, I don't believe that you are $host."); - } - } - return DECLINED; -} - -# also support EHLO -*hook_ehlo = \&hook_helo;