** NOTICE **

sa-exim-stats is no longer maintained.
Most people stopped using sa-exim in favor of exiscan to call spamd.

What is sa-exim-stats ?

sa-exim-stats is a program that generates statisticts from a logfile generated by a version of Exim patched with the sa-exim patch.
The sa-exim patch integrates SpamAssassin with Exim. This way incomming messages can be scanned at SMTP time (take a look at the sa-exim site for a more detailed explanation).

sa-exim-stats takes a exim logfile (exim_mainlog) as input, and outputs spam/mail statistics.

The script can be used to create/update a rrd archive. This will give you the ability to make graphs.

Docs

INSTALL  README  TODO

Current version

Current version sa-exim-stats-0.85.tar.bz2  ChangeLog

Example of a report :

Output generated with script version 0.51
#sa-exim-stats -f /var/log/exim/exim_mainlog -d -ts 5 -tc 5
Statistics from 2003-05-03 22:05:22 to 2003-05-19 19:45:47 (15.9 days)
/var/log/exim/exim_mainlog parsed in 0.081 seconds (4626 lines)

Total messages      : 400
Clean               : 197
Spam                : 203
Spam percentage     : 50.7%

Average spam score  : 13.23
Average clean score : -3.64

teergrubed          : 28
average score       : 22.11
total scantime      : 16 sec.

tossed (/dev/null)  : 26
average score       : 21.92
total scantime      : 262 sec.

rejected            : 136
average score       : 10.41
total scantime      : 920 sec.

accepted spam       : 13
average score       : 6.15
total scantime      : 72 sec.

clean mail          : 197
average score       : -3.64
total scantime      : 1698 sec.

Top 5 clean mail recipients
  1.   email1@domain2.nl  35
  2.   email2@domain1.nl  34
  3.   email3@domain3.nl  22
  4.   email4@domain2.nl  19
  5.   email5@domain1.nl  17

Top 5 spam recipients
  1.   email5@doamin1.nl  103
  2.   email1@doamin2.nl  55
  3.   teergrubed         26
  4.   email2@domain1.nl  10
  5.   email1@domain5.nl  7

(the alignment is all borked if you use non-monospace fonts, but it's ok in the shell output)


Sent bugs/comment/rants to martin.balvers at addicts.nl