Matt Kettler wrote: > Ben Lentz wrote: > > > > > > Has anyone done anything like this? > > > > Any suggestions on how to do it? > > > > Any other way to get the count? > > > > > > man mailstats > > > > I like mailgraph: http://mailgraph.schweikert.ch/ > > > There's also six dozen other tools out there that will graph using > rrdtool or MRTG. > > A simple web search for: email statistics mrtg > http://www.google.com/search?hl=en&q=email+statistics+mrtg&btnG=Google+Searc h > > Or: email statistics rrdtool > > http://www.google.com/search?hl=en&safe=off&q=email+statistics+rrdtool&btnG= Search > > Will quickly show many of your options. > > Since I use SA with the MailScanner integration, I use > MailScanner-MRTG.
Or you could just grep the maillog file (which is what most of these statistics programs are doing anyway). Here are my counts for yesterday. Clean messages: # zgrep -c 'clean message' /var/log/maillog.1.gz 577 Spams: # zgrep -c 'identified spam' /var/log/maillog.1.gz 670 Total: # zgrep -c 'spamd: result' /var/log/maillog.1.gz 1247 What is rather scary is the amount of junk that my server rejects: # zgrep -c 'error,relay' /var/log/maillog.1.gz 17576 The amount of mail that I reject at SMTP time is 30x more than the amount of real mail traffic on the server! -- Bowie