Koozali.org: home of the SME Server

Lot of mails?

Offline jonash

  • ****
  • 120
  • +0/-0
Lot of mails?
« on: December 11, 2006, 08:24:42 AM »
I got a mail from sme7admin with these warnings:
Quote

Fri Dec  8 01:14:05 2006
During the last 5 minutes, 450 incoming e-mails were detected,
Fri Dec  8 01:14:05 2006
During the last 5 minutes, 86 outgoing e-mails were detected


Later I got this info from spamfilter
Quote

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

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

Period Beginning : Fri Dec  8 00:00:00 2006
Period Ending    : Sat Dec  9 00:00:00 2006
Clam Version : ClamAV 0.88.6/2308/Fri Dec  8 17:10:24 2006
SpamAssassin Version : SpamAssassin version 3.1.3
  running on Perl version 5.8.5
Tag level:   5; Reject level:   0 (*Warning* 0 = no reject)

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

All SMTP connections accepted    :       25          
Connections from Fetchmail       :        2          
SMTP from local workstations     :        1          

RBL rejected                     :        0 (  0.00%)
Pattern filter rejected          :        0 (  0.00%)
Misc.rejected                    :        3 ( 12.00%)
Infected by Virus                :        0 (  0.00%)
Spam rejected (over reject level):        0 (  0.00%)
Spam detected (over tag level)   :        1 (  4.55%)
Ham detected (under tag level)   :       21 ( 95.45%)
Total emails accepted            :       22 (100.00%)
                                 --------------------
Total emails processed           :       22 (    0.92/hr)

Average spam score (accepted):        0.00
Average spam score (rejected):        5.40
Average ham score            :        1.19

Statistics by Hour
-----------------------------------------------------------------------------
Hour           Fetchml  Local    Virus      Spam     Ham    RBL/DNS*  Execut.
-------------- -------- -------- -------- -------- -------- -------- --------
2006-12-08, 00        0        0        0        0        0        0        0
2006-12-08, 01        0        0        0        0        0        0        0
2006-12-08, 02        0        0        0        1        2        0        0


They dont seem to report the same thing! Are these scripts reading different log files, or is something configured in a wrong way? Is there anyone who can clarify this?

Thanks!
.........

stefan_gk

Wrong stats because of missing log entries
« Reply #1 on: March 09, 2007, 10:11:37 AM »
I noticed that spamfilter-stats-7.pl reports mails only for last 6 or so hours.
Looked around I discovered that in /var/log/qpsmtpd logs are only from last couple of hours - saying it another way for less that a day.
In this situation maybe the suggested solution is to change log settings so that we have at least logs for the whole last day.
I guess that should be with logrotate, but if I'm not wrong it work by time. The noticed behaviour is that log are about 4.7 MB.
I don't know how to change log settings.

Any halp will be appreciated.


Stefan Krastanov

p.s. I found this artice: http://forums.contribs.org/index.php?topic=32853.0