1

Topic: Logs retention

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Dowloadable
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

where can I set retention for System >> Mail logs >> Sent/Received Mails? I want to keep it for a longer period in UI.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Logs retention

Add settings below in /opt/www/iredadmin/settings.py, update the numbers (3, 7) to the ones you prefer, then restart "iredadmin" service:

AMAVISD_REMOVE_MAILLOG_IN_DAYS = 3
AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

3

Re: Logs retention

Is there a similar setting for iredadmin-pro admin logs ??
iredmail 0.9.9
iredadmin-pro 3.2(mysql)


ZhangHuangbin wrote:

Add settings below in /opt/www/iredadmin/settings.py, update the numbers (3, 7) to the ones you prefer, then restart "iredadmin" service:

AMAVISD_REMOVE_MAILLOG_IN_DAYS = 3
AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

4

Re: Logs retention

Yes:

# Keep iRedAdmin admin log for days.
IREDADMIN_LOG_KEPT_DAYS = 365

Again, you can find default setting in /opt/www/iredadmin/libs/default_settings.py (Do not modify this file).