On Thu, 14 Jun 2007, [EMAIL PROTECTED] wrote:

>       I'm using forkserver 0.32
>
>       I see in the logs that what is reported (per the subject line) is
> different from what I pull when I try something like this:
>
>       I'll first register the "mail" hook, then:
>
> my ( $self, $transaction, $mail )   = @_ ;
> my $address = lc ( $mail->address ) ;
> $self->log ( 2, "ADDRESS : $address :" ) ;
>
>       In most cases, this is fine, but if I get a 'mail from' of
> <domain.only>, my self logging shows a null string.
>
>       What can I do to get the same address that qpsmtpd shows in the
> log file with "from email address :" - and why is there a difference? I'm
> try to detect that the address was not valid. Is null string the same as
> null sender?

        I found the code in SMTP.pm where the address is printed to the
log file. Since I needed a quick solution, I simply tested "$from" for the
absence of '@' and, if that's what I found, set it to a "legitimate"
address that I can control will never exist. Then I test for that address
in my module.

        I might be better to trace and find out where the value is
actually being changed, but I'm currently too busy.

        If anyone has any further info on this, please post it to the
list. I'm removing this address before the spambots pick it up, but I'll
be listening from another address. Thanks.

Reply via email to