1

Topic: Increase log duration

Hello,
Is there a way to increase duration of sent/received mails logs wich are stored in the mysql database ?
iredadmin webui > System > mail logs > Sent/Received Mails ?

I'd like to keep for example 15 days in place of 3 days.

Thanks

Nicolas

----

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

2

Re: Increase log duration

Sure. Add below settings to iRedAdmin-Pro config file, adjust the value to 15 (days) or whatever you want.

# 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

Note: these 2 settings are used by script tools/cleanup_amavisd_db.py, there's no need to restart Apache or uwsgi service to reload your modification.

3

Re: Increase log duration

Perfect thanks a lot

Nicolas