Charles Cazabon writes: 

> 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     

yes, but I don't want to filter message contents .....  this would be going 
too far in order to only get the TCPREMOTEIP 

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

the problem is that qmail injects the message into queue and does not log 
anything. the qmail-send is that makes the entry in the log and at this time 
it has no TCPREMOTEIP variable in its environment. I have to find a way to 
pass it .... maybe adding it into corresponding file in queue/info .... 

> You are running qmail-smtpd through tcpserver, aren't you?

no I use xinet.d , hope I find a way to set tihs variable with it 

> 
> Charles
> -- 
 

Nikolai 

Reply via email to