Topic: Installer should follow iRedAdmin password policy
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.1
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 22.04
- 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 Zhang!
I noticed that the iRedMail installer does not follow the iRedAdmin password policy.
Passwords in iRedMail.tips (just after installation) come with no special character.
If you try to set the password in the web GUI, an error is shown:
Error: No special character in password.
Why is this relevant? Well, if you choose to reinstall your iRedMail server and migrate mail accounts, you will have the old password for the postmaster account. You might want to set it to the one which was created during installation to steamline it with the places the same password is used (e.g. netdata login).
Proposal:
With my current knowledge, I can see some possible solutions:
1. Modify installer to create passwords with at least 1 special character
2. Exceptionally allow 32 character passwords in iRedAdmin without special character
3. Re-evaluate password policy in general, instead of requiring special characters, define a minimum entropy
See
https://pypi.org/project/password-strength/
Latter might need a bit more background.
Password strength is not a matter of special characters but all about entropy.
Lets take an example password as recommended by iRedAdmin Pro in the section "Need a strong password?"
DWm8aw2pH(
Entropy = 57 bits
From the installer we get 32 character passwords without special characters:
Tv35uheXE75kD3iPjMQNMnfN57qnCneN
Entropy = 167 bits
Instead of the password with special character, we can choose a longer password with the same entropy. Example:
Tv35uheXE75kD
Entropy = 58 bits
Eventually we can conclude: The longer the better
Best regards,
Bernhard
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.