For When You Can't Have The Real Thing
[ start | index | login ]
start > qmail > Sort Senders

Sort Senders

Created by dave. Last edited by dave, 10 years and 349 days ago. Viewed 2,110 times. #1
[edit] [rdf]

Sort Senders By Number Of Messages Sent

#for i in `grep 'SERVERNAME in' *14 | awk -F'|' '{print $2}' | sort | uniq` ; do echo  `grep $i *14 | wc -l` $i ; done | sort -nr | head -50 | mail -s "Top Senders" me@myemailservice

The *14 refers to a syslog file recorded with *.debug.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt