Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: Bozely on March 19, 2010, 01:01:48 PM
-
I recently turned on Spam statistics on our server but looking through them they only seem to log 3 hours, can anyone shed any light on why this might be?
Statistics by Hour
---------------------------------------------------------------------------------------------
Hour WebMail Local Virus RBL/DNS Non.Conf. Qued.Spam? Ham TOTALS PERCENT
--------------- ------- ------- ------- ------- --------- ---------- ------- ------- -------
2010-03-17, 00 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 01 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 02 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 03 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 04 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 05 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 06 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 07 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 08 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 09 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 10 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 11 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 12 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 13 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 14 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 15 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 16 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 17 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 18 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 19 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 20 0 0 0 0 0 0 0 0 0.0%
2010-03-17, 21 0 0 0 1013 91 3 3 1110 22.7%
2010-03-17, 22 0 0 0 2004 199 4 5 2212 45.2%
2010-03-17, 23 0 0 0 1360 213 0 1 1574 32.1%
--------------- ------- ------- ------- ------- --------- ---------- ------- ------- -------
TOTALS 0 0 0 4377 503 7 9 4896 100.0%
PERCENTAGES 0.0% 0.0% 0.0% 89.4% 10.3% 0.1% 0.2% 100.0% 100.0%
---------------------------------------------------------------------------------------------
Thanks in advance.
-
If your mail server is extremely busy, your logs may only contain a few hours of data (when I first installed SME 7.0 my qpsmtpd log only covered 2 - 3 hours).
Here is an old note on the qpsmtpd 'LogLevel' setting: http://wiki.contribs.org/Updating_to_SME_7.2#qpsmtpd_LogLevel
Look at /var/log/qpsmtpd/ and see what the times and dates are on the log files -- if your logs only cover the latest 3 - 4 hours, then spamfilter stats will only show you information for emails after 8 or 9 pm.
If your server is so busy that the log files are rotating very frequently, and your qpsmtpd LogLevel is already set at 6 (instead of the old default of 8 ), then you could:
* Enable qplogsumm (http://wiki.contribs.org/Email_Statistics#qplogsumm.pl), and see if you get the stats you want in /var/log/qpsmtpd/state
* Increase the amount of log file data retained for qpsmtpd (Here's an old discussion on this: http://forums.contribs.org/index.php/topic,32853.msg139334.html#msg139334, and here's a recent bug working on making this configurable: http://bugs.contribs.org/show_bug.cgi?id=2862)
-
do
cat /var/log/qpsmtpd/current | head | tai64nlocal
and
cat /var/log/qpsmtpd/current | tail | tai64nlocal
and
cd /var/log/qpsmtpd
ls -l
and see what the first and last date and times are.
However the mailstats program should pick up all log files and concatenate them before extracting the records for the previous day.