Hello, 

I have been using qmail for a while and its works very good. but now I want 
to make some important reports.... 

On my local network (company.com) there are 16 computers each one with a 
fixed IP address. I would like to make a report, of where and from the 
e-mail traffic is going. For example: 

Machine 192.168.1.3: 

#emails     From                     To
 5        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 4        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 1        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 1        [EMAIL PROTECTED]    [EMAIL PROTECTED] 

Machine 192.168.1.7: 

#emails     From                     To
 9        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 6        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 5        [EMAIL PROTECTED]    [EMAIL PROTECTED]
 5        [EMAIL PROTECTED]    [EMAIL PROTECTED] 


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] ..... 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 .... so the question is .... can I log 
the ip address somehow? Or is there a patch for qmail that does it? If not, 
any ideas and comments on how to achieve this ? 

Thanks in advance 

Nikolai

Reply via email to