Log history is only 4 days, how to increase?

Questions and answers about how to do stuff
Post Reply
maxkmv
Posts: 53
Joined: 28 Apr 2015 14:40

Log history is only 4 days, how to increase?

Post 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).
maxkmv
Posts: 53
Joined: 28 Apr 2015 14:40

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

Post 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
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

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

Post by pdwalker »

Do you know how the value got changed?
maxkmv
Posts: 53
Joined: 28 Apr 2015 14:40

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

Post 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.
Post Reply