Nikolai Vladychevski <[EMAIL PROTECTED]> wrote:
> 
[...]
> Half of the report could be made with a trivial script feeding the result of 
> matchup file generated by qmailanalog package (preety good)..... there is 
> just a problem ..... what if one of the employers changes his Return-Path 
> (or From) from [EMAIL PROTECTED] to [EMAIL PROTECTED] or even worse, 
> [EMAIL PROTECTED] .....

Welcome to the wonderful world of SMTP. :)

> this statistics would worth nothing. I could fix this problem knowing
> the IP address when the client connects to 25 port, but unfortunately,
> qmail doesn't log it ....

Yes, it does.  Look for the Received: header which contains it.  For
example:

Received: (qmail 22120 invoked from network); 16 Aug 2001 23:20:29 -0000        
Received: from outbound.ea.com (12.35.91.3)                                     
  by discworld.dyndns.org with SMTP; 16 Aug 2001 23:20:29 -0000     

The second line contains the IP address of the host which sent the
message via SMTP.  If that information isn't available in your messages,
then it's because you've explicitly cleared the TCPREMOTEIP variable.
You are running qmail-smtpd through tcpserver, aren't you?

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------

Reply via email to