Please don't cc: me; I'm on the list, and I set Mail-Followup-To:
appropriately.

Nikolai Vladychevski <[EMAIL PROTECTED]> wrote:
> Charles Cazabon writes: 
> > 
> >> 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 

Too far?  Perhaps one of the analyzer scripts in qmail-analog would take
care of much of the dirty work for you.
 
> 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 

inetd/xinetd is deprecated.  Use tcpserver.  It takes three minutes to
switch.

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

Reply via email to