diff --git a/plugins/rcpt_mysql b/plugins/rcpt_mysql index ee07322..3c0eb1e 100644 --- a/plugins/rcpt_mysql +++ b/plugins/rcpt_mysql @@ -188,6 +188,8 @@ sub askDatabase { my $self = shift; my $recipient = shift; + + $self->log(LOGDEBUG, "asking database for: $recipient "); if (length($self->{dsn}) == 0) { @@ -230,6 +232,7 @@ sub rcpt_to { my ($self, $transaction, $recipient) = @_; # some basic validations + $self->log(LOGDEBUG, "missing recipient host or recipient user (" . $recipient->host . "/" . $recipient->user . ")") unless $recipient->host && $recipient->user; return DECLINED unless $recipient->host && $recipient->user; # ask the cache for results