1

Topic: Issues with running the cleanup_amavisd_db.py cron job

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

When we run the python3 /opt/www/iredadmin/tools/cleanup_amavisd_db.py ; it throws the error below

Traceback (most recent call last):
  File "./cleanup_amavisd_db.py", line 56, in <module>
    keep_quar_days = db_settings['amavisd_remove_quarantined_in_days']
KeyError: 'amavisd_remove_quarantined_in_days'

Any insights on the above.

----

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

2

Re: Issues with running the cleanup_amavisd_db.py cron job

Do you have this line in /opt/www/iredadmin/libs/default_settings.py?

AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

3

Re: Issues with running the cleanup_amavisd_db.py cron job

mkk wrote:

Yes we do have the line

AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 0

4

Re: Issues with running the cleanup_amavisd_db.py cron job

Does it work if you set the value to a non-zero one? e.g. 7, 10, 30.