OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Postfix & Logcheck
From: Vivek Khera (kherakciLink.com)
Date: Tue Sep 19 2000 - 09:27:06 CDT


I use the following in my daily script:

echo ""; echo "Scanning maillog for rejections:"
zgrep ': reject:' /var/log/maillog.0.gz | cut -d : -f 5- | sort | uniq -c

echo ""

echo ""; echo "Scanning maillog for errors:"
env GREP=egrep zgrep ': (warning|error|fatal|panic):' /var/log/maillog.0.gz | cut -d : -f 4- | sort | uniq -c

This has worked quite well for me for over a year now, and I've been
able to notice customers/clients with open relays that are blocked or
other such things without having to wade through too much stuff
manually.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: kherakciLink.com       Rockville, MD       +1-301-545-6996
GPG & MIME spoken here            http://www.khera.org/~vivek/