--- plugins/rhsbl.orig 2005-07-02 17:15:11.000000000 +1000
+++ plugins/rhsbl 2005-07-02 17:15:29.000000000 +1000
@@ -9,6 +9,8 @@
sub mail_handler {
my ($self, $transaction, $sender) = @_;
+ return (DECLINED) if $self->qp->connection->relay_client();
+
my $res = new Net::DNS::Resolver;
my $sel = IO::Select->new();
my %rhsbl_zones_map = ();
@@ -45,6 +47,8 @@
my $host = $transaction->sender->host;
my $hello = $self->qp->connection->hello_host;
+ return (DECLINED) if $self->qp->connection->relay_client();
+
my $result = $self->process_sockets;
if ($result && defined($self->{_rhsbl_zones_map}{$result})) {
if ($result =~ /^$host\./ ) {