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, 5 years and 273 days ago. Viewed 1,092 times. #1
[edit] [rdf]
labels
attachments
(2013-March-15)

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt