1 (edited by edilsonamaral 2018-07-16 09:40:53)

Topic: Enforce password policy in Sogo

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):      0.9.8
- Linux/BSD distribution name and version:   Centos 7
- 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.
====


Is there a way to Enforce password policy in Sogo 4 ??

----

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

2

Re: Enforce password policy in Sogo

Set "passwordPolicy" to YES in sogo config file:
https://sogo.nu/files/docs/SOGoInstallationGuide.html

3

Re: Enforce password policy in Sogo

"passwordPolicy = YES" Won't work if we use Mysql

4

Re: Enforce password policy in Sogo

My mistake, sorry.

I don't think SOGo supports password policy with a SQL backend, i suggest asking in SOGo mailing list to get a accurate answer.

5

Re: Enforce password policy in Sogo

That's actually not the case with the recent versions.
Based on SOGoInstallationGuide
you can define the password policy in SOGoUserSources section

A predefined one works just fine
SOGoUserSources = (
        {
            [your sql connection data]
//policy to insert           
            userPasswordPolicy = (
                {
                     label = "POLICY_MIN_LOWERCASE_LETTER";
                     value = 1;
                },
                {
                     label = "POLICY_MIN_UPPERCASE_LETTER";
                     value = 1;
                },
                {
                     label = "POLICY_MIN_DIGIT";
                     value = 2;
                },
                {
                     label = "POLICY_MIN_SPECIAL_SYMBOLS";
                     value = 1;
                },
                {
                     label = "POLICY_MIN_LENGTH";
                     value = 8;
                }
            );
//end of policy
        },
);