chore: some debug log messages

This commit is contained in:
Dominik Meyer 2025-01-27 23:21:41 +01:00
parent ebe62e577d
commit 57402c47db
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -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