Koozali.org: home of the SME Server

statistiche mail di spam

Offline luca219

  • ****
  • 80
  • +0/-0
statistiche mail di spam
« on: March 18, 2008, 12:09:19 PM »
salve a tutti,
vorrei monitorare le mail di spam ricevute dagli utenti di uno smeserver.
Es: l'utente che riceve + spam, oppure quante mail di spam il server riceve in mese ecc..
Qualcuno avrebbe qualche suggerimento?
grazie

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: statistiche mail di spam
« Reply #1 on: March 18, 2008, 12:31:09 PM »
Ciao

per quanto riguarda le statistiche globali c'è uno script che gira in cron tutti i giorni ed invia ad admin una mail come questa.

Quote
SMEServer daily Anti-Virus and Spamfilter statistics
----------------------------------------------------

/usr/bin/spamfilter-stats-7.pl Version : 0.6.17

Period Beginning : Mon Mar 17 00:00:00 2008
Period Ending    : Tue Mar 18 00:00:00 2008

Clam Version : ClamAV 0.92/6277/Mon Mar 17 19:08:59 2008 SpamAssassin Version : SpamAssassin version 3.2.4
  running on Perl version 5.8.5
Tag level:   5; Reject level:  10 

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

All SMTP connections accepted:     597         
Emails per hour              :     24.9/hr

Average spam score (accepted):        6.32
Average spam score (rejected):       21.76
Average ham score            :        1.85

Statistics by Hour
----------------------------------------------------------------------------------------------------------------
           Hour Fetchmail   Local   Virus RBL/DNS Execut. Non.Conf. Del.Spam Qued.Spam?     Ham  TOTALS PERCENT
--------------- --------- ------- ------- ------- ------- --------- -------- ---------- ------- ------- -------
2008-03-17, 00         8       0       1       0       0         4        3          0       0       8    1.3%
2008-03-17, 01         2       0       0       0       0         1        1          0       0       2    0.3%
2008-03-17, 02         8       0       0       0       0         3        3          0       2       8    1.3%
2008-03-17, 03        13       0       7       0       0         2        1          1       2      13    2.2%
2008-03-17, 04        19       0       6       2       0         4        3          0       4      19    3.2%
2008-03-17, 05        24       0      12       2       0         2        0          1       7      24    4.0%
2008-03-17, 06         9       0       0       0       0         1        1          1       6       9    1.5%
2008-03-17, 07         8       0       0       0       0         1        2          0       5       8    1.3%
2008-03-17, 08        21       1       1       2       0         5        4          2       8      22    3.7%
2008-03-17, 09        22       6       0       0       0         1        1          5      21      28    4.7%
2008-03-17, 10        45      15       0       0       0         2        2         14      42      60   10.1%
2008-03-17, 11        38      10       1       0       0         2        1          8      36      48    8.0%
2008-03-17, 12        42       1       0       0       0         4        4          6      29      43    7.2%
2008-03-17, 13        42       0       0       2       0         5        4          6      25      42    7.0%
2008-03-17, 14        38       1       3       0       0        11        8          0      17      39    6.5%
2008-03-17, 15        44       0       1       0       0         7        7          4      25      44    7.4%
2008-03-17, 16        42       1       0       0       0         5        5         11      22      43    7.2%
2008-03-17, 17        38       4       1       0       0         2        2          7      30      42    7.0%
2008-03-17, 18        30       5       0       0       0         3        3          6      23      35    5.9%
2008-03-17, 19        16       0       0       0       0         0        0          4      12      16    2.7%
2008-03-17, 20        15       0       0       0       0         2        2          1      10      15    2.5%
2008-03-17, 21         7       0       0       0       0         2        2          2       1       7    1.2%
2008-03-17, 22        17       0       0       0       0         6        6          0       5      17    2.8%
2008-03-17, 23         5       0       0       0       0         2        2          1       0       5    0.8%

--------------- --------- ------- ------- ------- ------- --------- -------- ---------- ------- ------- -------
TOTALS               553      44      33       8       0        77       67         80     332     597   100.0%
PERCENTAGES         92.6%    7.4%    5.5%    1.3%    0.0%     12.9%    11.2%      13.4%   55.6%  100.0%  100.0%
----------------------------------------------------------------------------------------------------------------
*Fetchml* means connections from Fetchmail delivering email
*Local* means connections from workstations on local LAN.
*Non.Conf.* means sending mailserver did not conform to correct protocol.
            or email was to non existant address.


Incoming mails by recipient domains usage
-----------------------------------------
Domains                      Type       Total  Denied XferErr Accept %accept
---------------------------- ---------- ------ ------ ------- ------ -------
Internal                     other           9      0       0      9 100.00%
Others                       other          85      8      77      0   0.00%
Outgoing                     other          35      0       0     35 100.00%
barzi.lan                    local         468    100       0    368  78.63%
---------------------------- ---------- ------ ------- ------ ------ -------
Total                                      597    108      77    412  69.01%

597 mails were processed for 597 Recipients
The average recipients by mail is 1.00

Virus Statistics by name:
---------------------------------------------
Rejected 14   Email.Hdr.Sanesecurity.07111007
Rejected 7   Email.Hdr.Sanesecurity.07101400
Rejected 3   Email.Hdr.Sanesecurity.07111002
Rejected 2   Html.Spam.Gen2844.Sanesecurity.08031402.zip
Rejected 2   Email.Hdr.Sanesecurity.08022900
Rejected 1   Email.Hdr.Sanesecurity.07091600
Rejected 1   Email.Spam.Sanesecurity.Url_1997
Rejected 1   Email.Spam.Gen903.Sanesecurity.07062812
Rejected 1   Email.Spam.Gen2383.Sanesecurity.08020517
Rejected 1   Email.Hdr.Sanesecurity.07111003
---------------------------------------------

Qpsmtpd codes league table:
---------------------------------------------
Count   Percent   Reason   
---------------------------------------------
412   69.0%   queued
77   12.9%   check_basicheaders
67   11.2%   spamassassin
33    5.5%   virus::clamav
8    1.3%   rhsbl
---------------------------------------------

Spamassassin Rules:
---------------------------------------------
Count   Percent   Ave.Hits   Rule   
---------------------------------------------
136   22.8%    1.9   HTML_MESSAGE
54    9.0%    3.7   HTML_IMAGE_RATIO_02
29    4.9%   25.4   DIGEST_MULTIPLE
25    4.2%    6.4   EXTRA_MPART_TYPE
23    3.9%    5.8   FH_HELO_EQ_D_D_D_D
13    2.2%    3.1   HTML_FONT_SIZE_HUGE
12    2.0%    4.8   HTML_IMAGE_ONLY_12
11    1.8%    3.7   APOSTROPHE_FROM
11    1.8%    3.7   DYN_RDNS_AND_INLINE_IMAGE
10    1.7%    1.7   HTML_FONT_SIZE_LARGE
9    1.5%   17.8   DOS_OE_TO_MX
8    1.3%    5.3   HTML_IMAGE_ONLY_08
7    1.2%   13.2   DATE_IN_PAST_06_12
7    1.2%    3.3   HTML_IMAGE_ONLY_04
7    1.2%    5.8   HTML_IMAGE_RATIO_08
7    1.2%    0.2   MISSING_MID
6    1.0%    4.2   HTML_IMAGE_ONLY_32
---------------------------------------------

***No junkmail folders with emails***

Done. Report generated in 2 sec.


cerca spamfilter-stats nei forum

se vuoi statistiche più articolate (per es. a livello di user) allora devi ingegnarti con qualche script.

Ciao
Stefano

Offline luca219

  • ****
  • 80
  • +0/-0
solved Re: statistiche mail di spam
« Reply #2 on: March 18, 2008, 02:10:04 PM »
ciao, nel server che utilizzo per i test non vedo la mail.
Ho controllato i vari post e tutti fanno riferimento /usr/bin/spamfilter-stats-7.pl
ho provato a scaricarlo da qui,ma non è più disponibile.
http://forums.contribs.org/index.php?topic=31357.msg131788#msg131788

trovato:
http://wiki.contribs.org/Email_Statistics
grazie
« Last Edit: March 18, 2008, 04:02:39 PM by luca219 »