This made me think, shouldn't the DENY code log the deny reason,
instead of modifying every plugin to log the reason?

-R

>   @@ -47,6 +52,9 @@
>    sub rcpt_handler {
>      my ($self, $transaction, $rcpt) = @_;
>      my $note = $transaction->notes('badmailfrom');
>   -  return (DENY, $note) if $note;
>   +  if ($note) {
>   +    $self->log(LOGINFO, $note);
>   +    return (DENY, $note);
>   +  }
>      return (DECLINED);
>    }
>   
>   
>   

Reply via email to