1

Topic: IredAdmin Activity Log Deletion Error

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

iRedMail Version --> 1.5.1
Deployed with downloadable install
Rocky Linux release 8.5 (Green Obsidian). An upgrade from Centos 8
Mail Account store --> PGSQL
Webserver Nginx
Mail accounts management --> iRedAdmin

Am trying to clean up the activities log on iRedAdmin. I have a lot of entries there (over 5000)

When I select 50 entries the go to choose action --- delete all in database then click on apply, I get an error

 Error: TypeError("delete() missing 1 required positional argument: 'where'",)

Am only able to delete the messages if I delete 50 at time but this will take a very long time.

1. Is there any way of deleting from CLI? It looks like an SQL query.
2. I only discovered this activity log recently. I think it should be mentioned in the regular maintenance docs

----

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

2

Re: IredAdmin Activity Log Deletion Error

Hello,

I sincerely apologise for the multiple posts.

Every time I clicked on submit I got a SMTP EHLO 501 error and I thought the post hadn't gone through.

Am using MS-Edge browser latest stable release [Version 99.0.1150.55 (Official build) (x86_64)]

Will try and see if it's possible to delete the other posts.

Again I sincerely apologise for the multiple posts

3

Re: IredAdmin Activity Log Deletion Error

Dear @kysh,

Confirmed it's a bug of the latest iRedAdmin open source edition (but not iRedAdmin-Pro), you can fix it with patch here:
https://github.com/iredmail/iRedAdmin/c … d2219eddf0

Thank you very much for the feedback.

4

Re: IredAdmin Activity Log Deletion Error

ZhangHuangbin wrote:

Dear @kysh,

Confirmed it's a bug of the latest iRedAdmin open source edition (but not iRedAdmin-Pro), you can fix it with patch here:
https://github.com/iredmail/iRedAdmin/c … d2219eddf0

Thank you very much for the feedback.

The patch worked. Thanks alot