Page 1 of 1

Log history is only 4 days, how to increase?

Posted: 03 Dec 2017 20:49
by maxkmv
Hi Community!

Not sure if this was asked before, but after one of the recent updates, for some reason I can only see the history of all messages going back 4 days. E.g. previously I could see a log of past 90 days or so..This is very useful in searches to see if the same IP address was sending me spam in the past, for example..

How do I enable to see it like before? I want to retain a history of 2-3 months (I don't need the actual emails, just the email headers).

Re: Log history is only 4 days, how to increase?

Posted: 07 Dec 2017 10:43
by maxkmv
Found it myself.

In /var/www/html/mailscanner/conf.php

change RECORD_DAYS_TO_KEEP and AUDIT_DAYS_TO_KEEP to xxxx - where xxxx is number of days

Re: Log history is only 4 days, how to increase?

Posted: 08 Dec 2017 07:42
by pdwalker
Do you know how the value got changed?

Re: Log history is only 4 days, how to increase?

Posted: 10 Dec 2017 09:18
by maxkmv
It most definitely happened after one of the recent updates... My partition didn't have enough size to auto-update, so for about 6 months I didn't action any updates. Once I reduced my quarantine settings to fewer days, more disk space became available and I did several sequential updates (install-> reboot-> check for update -> install -> reboot-> check for update). So I cannot say which update exactly has changed this value.