Difference between revisions of "Email Statistics"

From SME Server
Jump to navigationJump to search
Line 5: Line 5:
 
  <nowiki>wget -O /etc/cron.d/mailstats.cron http://mirror.contribs.org/smeserver/contribs/bread/mailstats/mailstats.cron</nowiki>
 
  <nowiki>wget -O /etc/cron.d/mailstats.cron http://mirror.contribs.org/smeserver/contribs/bread/mailstats/mailstats.cron</nowiki>
 
  <nowiki>wget -O /usr/bin/spamfilter-stats-7.pl http://mirror.contribs.org/smeserver/contribs/bread/mailstats/spamfilter-stats-7.pl</nowiki>
 
  <nowiki>wget -O /usr/bin/spamfilter-stats-7.pl http://mirror.contribs.org/smeserver/contribs/bread/mailstats/spamfilter-stats-7.pl</nowiki>
 +
'''WARNING''': Make sure that these files are accessible before executing the above commands!  If you are unable to access http://mirror.contribs.org/smeserver/contribs/bread/mailstats/ the above commands will create empty files!
 +
 
The email recipient is specified in the spamfilter-stats-7.pl file, currently at line 108, using:
 
The email recipient is specified in the spamfilter-stats-7.pl file, currently at line 108, using:
 
   $opt{'mail'}    = "admin";
 
   $opt{'mail'}    = "admin";

Revision as of 17:15, 28 July 2007

Email Statistics

How to get statistics about the performance of your mail server

Brian Read's spamfilter-stats-7.pl

Brian Read's mailstats.pl script analyzes your qpsmtpd log files and sends a daily email to "admin" summarizing that day's email activity.

wget -O /etc/cron.d/mailstats.cron http://mirror.contribs.org/smeserver/contribs/bread/mailstats/mailstats.cron
wget -O /usr/bin/spamfilter-stats-7.pl http://mirror.contribs.org/smeserver/contribs/bread/mailstats/spamfilter-stats-7.pl

WARNING: Make sure that these files are accessible before executing the above commands! If you are unable to access http://mirror.contribs.org/smeserver/contribs/bread/mailstats/ the above commands will create empty files!

The email recipient is specified in the spamfilter-stats-7.pl file, currently at line 108, using:

 $opt{'mail'}     = "admin";