1

Topic: Slow iRedAdminPro login

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

We're encountering VERY slow login times to iRedAdminPro.   It can take up to about 40 seconds to login.   Once logged in performance appears ok.   Login with Sogo is very fast and performance is good.

Does anyone have suggestions on what I could change?   I don't believe increasing the number of Sogo threads will help since iRedAdminPro appears to be running independently of Sogo.  Is there a similar setting for iRedAdminPro?

Is it possible to change the inactivity logout time for iRedAdminPro?   Everytime this times out we have to wait a large amount of time.   Our Help Desk is slowed by this wait.

Thanks,
Bob

----

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

2

Re: Slow iRedAdminPro login

1: Try to reduce the keep days of Amavisd log in /opt/www/iredadmin/settings.py:

AMAVISD_REMOVE_MAILLOG_IN_DAYS = 3
AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

You can find default settings in /opt/www/iredadmin/libs/default_settings.py, copy above parameters to "settings.py" and reduce their values.
2: Make sure you have a daily cron job to run script "/opt/www/iredadmin/tools/cleanup_amavisd_db.py". It's ok to run it very few hours if your server is busy.

3

Re: Slow iRedAdminPro login

Thanks for the quick reply!   I already had the following in cron:
1   2   *   *   *   python /opt/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/null

I have added the lines you've mentioned to settings.py.   Login is much faster, now it's only about 10 seconds instead of 30 to 40.

Thanks,
Bob


ZhangHuangbin wrote:

1: Try to reduce the keep days of Amavisd log in /opt/www/iredadmin/settings.py:

AMAVISD_REMOVE_MAILLOG_IN_DAYS = 3
AMAVISD_REMOVE_QUARANTINED_IN_DAYS = 7

You can find default settings in /opt/www/iredadmin/libs/default_settings.py, copy above parameters to "settings.py" and reduce their values.
2: Make sure you have a daily cron job to run script "/opt/www/iredadmin/tools/cleanup_amavisd_db.py". It's ok to run it very few hours if your server is busy.