Hey,
I'm using Qpsmtpd 0.28 and a while ago I changed my loglevel from 8 to 7 and 
after that change receivers email address wasn't shown in the log anymore.

I browsed the 0.3x branch and discovered this line on SMTP.pm:
$self->log(LOGALERT, "to email address : [$rcpt]");

So now I changed my SMTP.pm to contain this line:
$self->log(LOGINFO, "to email address : [$rcpt]");

The sub rcpt { -part in SMTP.pm now looks like this:
my ($rcpt) = ($_[0] =~ m/to:(.*)/i)[0];
  $rcpt = $_[1] unless $rcpt;
  $self->log(LOGINFO, "to email address : [$rcpt]");
  $rcpt = (Mail::Address->parse($rcpt))[0];

Is this change I made correct (at least it did work, this showed up in the 
log: 16836 to email address : [EMAIL PROTECTED]) ?

Would it cause any issues on some special conditions or is it safe to go 
that way?

P.S. I won't use loglevel 8 anymore, so possibly getting the "to email 
address" info twice in the log isn't a problem.

Regards,
Timo 


Reply via email to