Some of you are running Imail or other mailbox server as backup MX, or have 
Imail port accessible from Internet.

if you get these tools onto the Imail machine:

http://unxutils.sourceforge.net and copy at least gawk, grep, and uniq to 
winnt/system32

... here's command that you can run to see how many connects Imail is 
taking directly:


grep -i "smtpd.*connect" /path/to/Imail/sysMMDD.txt | gawk "{print $6}" | 
sort | uniq -ci

This will also show connects from you ip's and from IMgate.

explanation:

grep -i "smtpd.*connect" /path/to/Imail/sysMMDD.txt

   ... find all the Imail log lines containing with "smtpd" + "connect" and 
pipe those lines to:

gawk "{print $6}"

    .... print the 6th field (is ip connnecting to Imail)

sort

uniq -ci

   ... and count up the number of lines per ip, which gives us the number 
of times an ip connected to Imail.


You should get something like this:

       1 168.95.4.12
       1 192.44.63.194
       1 193.252.19.25
    1437 193.252.44.38
       1 194.206.157.196
       3 194.79.169.230
       1 195.115.68.9
       1 195.145.240.2
       1 195.154.181.163
       1 195.154.209.22
       1 202.105.205.142
       1 202.160.251.234
       1 202.96.104.66
       1 202.96.136.222
       1 202.97.181.126
       1 211.75.21.126
       2 212.234.178.66
       1 212.37.223.33
       2 212.73.210.18
       8 212.73.210.65
       1 212.73.210.74
       9 212.73.210.75
    3288 212.73.210.91
       1 213.41.19.83
       1 216.115.96.53
       1 24.184.146.77
       1 61.141.211.45
       2 62.210.116.12
      44 66.64.14.18

If you want this report in a file, just add   "> /path/to/file" at the end 
of the command.

Len 

-- Binary/unsupported file stripped by Listar --
-- Type: application/zip
-- File: unixtools.zip



Reply via email to