1

Topic: Changing password in Roundcube not working, missing encryption message

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

Changing password in Roundcube doesn't work. Displays 'encryption missing' message. I have the php-mcrypt module installed. Here are the relevant lines from password plugin's config.inc.php:

$config['password_driver'] = "sql";
$config['password_dovecotpw'] = "/usr/local/bin/doveadm pw";
$config['password_dovecotpw_method'] = "BLF-CRYPT";

Tried changing the method to SSHA, SSHA512 to no avail. Anything else I can check ?

Thanks.

----

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

2

Re: Changing password in Roundcube not working, missing encryption message

- Is "password_algorithm" set to "dovecot"?
- Is this a fresh installation and not work?

3

Re: Changing password in Roundcube not working, missing encryption message

ZhangHuangbin wrote:

- Is "password_algorithm" set to "dovecot"?
- Is this a fresh installation and not work?

Hi, password_algorithm is set to 'clear' as per default iRedmail install. However I think I fix it by changing
1 line:

From:
$config['password_query'] = "UPDATE mailbox SET password=%D,passwordlastchange=NOW() WHERE username=%u";

To:
$config['password_query'] = 'UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1';

Changing this and keeping everything else per default iRedmail Roundcube install has allowed me to change password via Webmail.

4

Re: Changing password in Roundcube not working, missing encryption message

GenZod wrote:
ZhangHuangbin wrote:

- Is "password_algorithm" set to "dovecot"?
- Is this a fresh installation and not work?

Hi, password_algorithm is set to 'clear' as per default iRedmail install. However I think I fix it by changing
1 line:

From:
$config['password_query'] = "UPDATE mailbox SET password=%D,passwordlastchange=NOW() WHERE username=%u";

To:
$config['password_query'] = 'UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1';

Changing this and keeping everything else per default iRedmail Roundcube install has allowed me to change password via Webmail.

Edit: Yes this is on a fresh install on FreeBSD 13.