1

Topic: Increase quarantined emails 7 days limit

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

How can I increase the default 7 days limit for keeping the quarantined emails?

----

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

2

Re: Increase quarantined emails 7 days limit

iRedAdmin-Pro has 2 parameters to control how long you can keep daily in/out mail info (no mail body) and quarantined emails:

# Remove old SQL records of sent/received mails in Amavisd database.
# NOTE: require cron job with script tools/cleanup_amavisd_db.py.
AMAVISD_REMOVE_MAILLOG_IN_DAYS = 3

# Remove old SQL records of quarantined mails.
# Since quarantined mails may take much disk space, it's better to release
# or remove them as soon as possible.
# NOTE: require cron job with script tools/cleanup_amavisd_db.py.
AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

To update them, please copy the parameter(s) to /var/www/iredadmin/settings.py and set a proper value you want, then restart Apache or uwsgi (if you're running Nginx) service.

More default settings can be found in /var/www/iredadmin/libs/default_settings.py.