Hi Hans,

On Mon, Jun 27, 2005 at 12:43:44PM +0200, Hans Sandsdalen wrote:
>   # Check greylisting
>   my $sender = $transaction->sender;
>   my ($status, $msg) = $self->denysoft_greylist($transaction, $sender, 
> $rcpt, $c
> onfig);
>   my $connection = $self->qp->connection;                     # added
>   if ( $connection->relay_client() ) {                                # added
>      $self->log(LOGWARN, "relay/auth clients are ok");                # added
>      return DECLINED;                                         # added
>   }                                                           # added
>   if ($status == DENYSOFT) {
>     # Deny here (per-rcpt) unless this is a <> sender, for smtp probes
>     return DENYSOFT, $msg if $sender->address;
>     $transaction->notes('denysoft_greylist', $msg);
>   }
>   return DECLINED;

There's already code for this inside denysoft_greylist(), but it's using
the old $ENV{RELAYCLIENT} instead of $self->qp->connection->relay_client,
so you should probably just change it there.

Can one of the committers fix that in svn too? 

Cheers,
Gavin

Reply via email to