-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 12 August 2004 09:38, Terrel Shumway wrote:
> It's pretty scary to try to get something useful
> from courier's logs because there is no standard
> format for log messages.
>
> First: does anyone have a greppy perl script or such
> that will make sense of the log files?
I am in the process of writing a small (and probably clumsy - I'm not
much of a shell script genius) shell script. Not even sure if it'll
work 100% with other shells than bash.
<www.sentinel.dk/cookbook/courier-mail-statistics.sh>
One should have geoip installed as well (not a requirement, though).
The output it generates looks like this:
/var/log/mail.log.4.gz (Jul 4 06:48:02 - Jul 11 06:46:40) (weekly
report)
Processed mail: Incoming: 4352, Outgoing: 498
Relay attempts: 17
Mail sent to hosted domain but with unknown user: 1190
IP addresses behind relay attempts (top ten):
62.42.15.137 ES, Spain 4
218.5.109.188 CN, China 4
208.31.42.77 US, United States 4
61.249.159.157 KR, Korea, Republic of 1
222.101.168.37 KR, Korea, Republic of 1
211.180.125.238 KR, Korea, Republic of 1
210.64.169.222 TW, Taiwan 1
195.228.231.80 HU, Hungary 1
IP addresses behind user unknown attempts (probably spammers)
(top ten):
80.98.168.39 HU, Hungary 31
62.68.170.228 HU, Hungary 29
65.254.39.234 US, United States 28
195.228.164.82 HU, Hungary 25
82.100.12.61 CZ, Czech Republic 24
62.65.166.4 SK, Slovakia 21
62.168.123.42 SK, Slovakia 21
209.51.152.146 US, United States 20
212.92.26.195 HU, Hungary 19
194.88.52.2 HU, Hungary 19
B/R,
- --
Frederik Dannemare | mailto:[EMAIL PROTECTED]
http://qa.debian.org/developer.php?login=Frederik+Dannemare
http://frederik.dannemare.net | http://www.linuxworlddomination.dk
Key fingerprint: BB7B 078A 0DBF 7663 180A F84A 2D25 FAD5 9C4E B5A8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBHc/9LSX61ZxOtagRAuVNAJ49Jusvzf6TViPS69aDJSeqb/Ks0ACgj6QJ
J2umjS/NES3gEK96XUPqvHc=
=GY9C
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users