SpamAssassin: утилита sa-stats – статистика работы антиспама

Автор: | 07/20/2014
 

spamassassin_logoКачаем скрипт – http://spamassassin.apache.org/full/2.6x/dist/tools/sa-stats.pl

Для его корректной работы потребуются ещё несколько Perl-модулей:

# yum -y install perl-DateManip
# yum -y install perl-Parse-Syslog

Готово, запускаем:

# ./sa-stats.pl
Report Title : SpamAssassin - Spam Statistics
Report Date : 2014-07-13
Period Beginning : Sun 13 Jul 2014 12:00:00 AM EEST
Period Ending : Mon 14 Jul 2014 12:00:00 AM EEST

Reporting Period : 24.00 hrs
--------------------------------------------------

Note: 'ham' = 'nonspam'

Total spam detected : 16 ( 84.21%)
Total ham accepted : 3 ( 15.79%)
-------------------
Total emails processed : 19 ( 1/hr)

Average spam threshold : 5.00
Average spam score : 877.61
Average ham score : 0.17

Spam kbytes processed : 69 ( 3 kb/hr)
Ham kbytes processed : 3 ( 0 kb/hr)
Total kbytes processed : 72 ( 3 kb/hr)

Spam analysis time : 10 s ( 0 s/hr)
Ham analysis time : 0 s ( 0 s/hr)
Total analysis time : 10 s ( 0 s/hr)


Statistics by Hour
----------------------------------------------------
Hour Spam Ham
------------- ----------------- --------------
2014-07-13 00 0 ( 0%) 0 ( 0%)
2014-07-13 01 0 ( 0%) 0 ( 0%)
2014-07-13 02 0 ( 0%) 0 ( 0%)
2014-07-13 03 0 ( 0%) 0 ( 0%)
2014-07-13 04 0 ( 0%) 0 ( 0%)
2014-07-13 05 0 ( 0%) 0 ( 0%)
2014-07-13 06 0 ( 0%) 0 ( 0%)
2014-07-13 07 0 ( 0%) 0 ( 0%)
2014-07-13 08 0 ( 0%) 0 ( 0%)
2014-07-13 09 0 ( 0%) 0 ( 0%)
2014-07-13 10 0 ( 0%) 0 ( 0%)
2014-07-13 11 0 ( 0%) 0 ( 0%)
2014-07-13 12 0 ( 0%) 0 ( 0%)
2014-07-13 13 0 ( 0%) 0 ( 0%)
2014-07-13 14 0 ( 0%) 0 ( 0%)
2014-07-13 15 0 ( 0%) 0 ( 0%)
2014-07-13 16 0 ( 0%) 0 ( 0%)
2014-07-13 17 0 ( 0%) 0 ( 0%)
2014-07-13 18 0 ( 0%) 0 ( 0%)
2014-07-13 19 8 ( 72%) 3 ( 27%)
2014-07-13 20 8 (100%) 0 ( 0%)
2014-07-13 21 0 ( 0%) 0 ( 0%)
2014-07-13 22 0 ( 0%) 0 ( 0%)
2014-07-13 23 0 ( 0%) 0 ( 0%)

Done. Report generated in 0 sec by sa-stats.pl, version 6256.