1

Topic: Roundcube users can't change password

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.3.2
- Deployed with iRedMail Easy or the downloadable installer?
iRedMail Easy
- 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.
could not save new password. encryption function missing
====

Hi,

I found a lot of links about this issue but any of the suggested fixes did not work.

In Roundcube users can't change their password and the error is:
could not save new password. encryption function missing

THe disable_functions setting is empty so there are none disabled. When I test the password against the encrypted hash from the vmail database it works:
/usr/bin/doveadm pw -s SSHA -t "{SSHA}NJSwHpcENepv1iLCHrQdG4RJeoLCMOEDrx5tNA=="
Enter password to verify:
{SSHA}NJSwHpcENepv1iLCHrQdG4RJeoLCMOEDrx5tNA== (verified)

Bellow are the relevant configs from roundcube/plugins/password/config.inc.php:
$config['password_query'] = "UPDATE mailbox SET password=%D,passwordlastchange=NOW() WHERE username=%u";
$config['password_crypt_hash'] = 'md5';
$config['password_idn_ascii'] = false;
$config['password_dovecotpw'] = "/usr/bin/doveadm pw ";
$config['password_dovecotpw_method'] = "SSHA";
$config['password_dovecotpw_with_method'] = true;
$config['password_hash_algorithm'] = 'sha1';
$config['password_hash_base64'] = false;
$config['password_blowfish_cost'] = 12;

Please help.
THanks in advance.

2

Re: Roundcube users can't change password

Do you have package 'php-mcrypt' installed?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Roundcube users can't change password

ZhangHuangbin wrote:

Do you have package 'php-mcrypt' installed?

yes, it is installed

4

Re: Roundcube users can't change password

Any related error in /var/log/maillog?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: Roundcube users can't change password

ZhangHuangbin wrote:

Any related error in /var/log/maillog?

At first there were errors about disabled functions. After I completely allowed all functions there were no more errors in the logs and it still does not work.

6

Re: Roundcube users can't change password

Does your server have "mcrypt" package?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

7

Re: Roundcube users can't change password

Hi,

Yes, mcrypt is installed on the server.

ZhangHuangbin wrote:

Does your server have "mcrypt" package?

8

Re: Roundcube users can't change password

No idea right now.

Would you like to buy a support ticket for remote support via ssh?
https://www.iredmail.org/support.html

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee