1

Topic: SOGo ModulesConstraints takes long time to detect c_webmail change

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

Hello.

Sogo version: 5.5.0

All my users have this settings in iredadmin-pro:
SOGo Groupware (Webmail, Calendar, ActiveSync) - enabled
SOGo Webmail - disabled
SOGo Calendar - enabled
SOGo ActiveSync - enabled

When I enable SOGo Webmail it takes around 15min to make changes visible for user.

Detail procedure:
-logout from SOGo
-enable SOGo Webmail in iredadmin-pro
-login to SOGo - only calendar and contacts are visible
-logout from sogo, wait 15min, login again - now I can see mail view

Why it takes so long time for changes to take affect?

I dont see any relavant error logs in sogo.log. I can confirm that changes in database are visible immediately after enabling SOGo Webmail in iredadmin-pro.

MariaDB [sogo]> select * from users where c_uid='test@example.net'\G;
*************************** 1. row ***************************
c_uid: test@example.net
c_name: test@example.net
c_password: ****
c_cn: test
mail: test@example.net
domain: example.net
c_webmail: y
c_calendar: y
c_activesync: y

----

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

2

Re: SOGo ModulesConstraints takes long time to detect c_webmail change

SOGo uses memcached as the local cache, it caches for 5 minutes by default.
You can try to restart memcached then check again.

3

Re: SOGo ModulesConstraints takes long time to detect c_webmail change

Thank you, it helps.

How can I lower default cache from 5min to 1min?
Or even better, how can I exclude table sogo.users from memcache?

4

Re: SOGo ModulesConstraints takes long time to detect c_webmail change

Setting SOGoCacheCleanupInterval to lower value helps.