1

Topic: Disable stats on home page

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

iRedAdmin-Pro 1.3.1 (MySQL)
Centos 5.8

Is there a way to disable all the stats on the home page on iRedamin?
It usually takes over a minute to get logged in as it is reading the data for the stats.

Thanks

----

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

2

Re: Disable stats on home page

Disable Amavisd integration in iRedAdmin-Pro config file settings.ini will disable it, and you cannot view Sent/Received/Quarantined mails, too.

# File: settings.ini

[amavisd]
logging_into_sql = False
...

3

Re: Disable stats on home page

Hmm. Don't really want to do that. It is useful information.
How about being able to make the 'home page' (first page after login) a different page? Such as the Domains and Accounts page? That is usually the page I head to first.

Thanks

4

Re: Disable stats on home page

smokinkat wrote:

How about being able to make the 'home page' (first page after login) a different page? Such as the Domains and Accounts page? That is usually the page I head to first.

You can do it with below change:

1: Open controllers/mysql/basic.py, find below two lines:

            raise web.seeother('/dashboard')
...
            raise web.seeother('/dashboard/checknew')

2: Change both "/dashboard" and "/dashboard/checknew" to "/domains". Save changes.

Restarting Apache is required. This works with all editions of iRedAdmin-Pro: LDAP, MySQL, PGSQL.

Will consider make it configurable in next release of iRedAdmin-Pro, for example, config it in libs/settings.py:

REDIRECT_TO_DOMAIN_LIST_AFTER_LOGIN = True

5

Re: Disable stats on home page

Thank you. That works great and it's much faster logging in.

6

Re: Disable stats on home page

It's achieved and will be available in next release of iRedAdmin-Pro. What you need to do is:

1: Edit libs/settings.py, find below setting. It's set to False by default.

REDIRECT_TO_DOMAIN_LIST_AFTER_LOGIN = False

2: Change it to True.

REDIRECT_TO_DOMAIN_LIST_AFTER_LOGIN = True

3: Restart Apache.

P.S. It's better to save all changed settings in libs/settings.py to a new file: libs/settings_local.py. You have to create it manually, and set correct file owner (iredadmin:iredadmin) and permission (0555). So that you can simply copy libs/settings_local.py to save your custom settings while upgrading iRedAdmin-Pro.