Page 1 of 2

Impossible to change email user password from Rouncube

Posted: Thu Jan 21, 2016 10:47 pm
by Spheerys
Hi,

I want my customers be able to change their email password account directly from Roundcube.
The fonction is there but if I try to change it, I have this error : "Impossible to register the new password"

The new password has more than 6 characters...

What's wrong ?

Re: Impossible to change email user password from Rouncube

Posted: Fri Jan 22, 2016 9:06 am
by joem
Spheerys wrote:Hi,

I want my customers be able to change their email password account directly from Roundcube.
The fonction is there but if I try to change it, I have this error : "Impossible to register the new password"

The new password has more than 6 characters...

What's wrong ?

What os are you using?

Re: Impossible to change email user password from Rouncube

Posted: Fri Jan 22, 2016 10:35 am
by Spheerys
Debian 8.2 :)

Re: Impossible to change email user password from Rouncube

Posted: Sun Jan 31, 2016 12:09 am
by dpeca
After a lot of debuging, I finaly figured out what is going on.

Someone who wrote a ''Rondcube password changer driver for VestaCP'' should convert a function to class in file /usr/share/roundcube/plugins/password/drivers/vesta.php
Plugin 'passwod' is expecting a class in that file, but there is only a function.

Anyway, here is a solution to fix this.

1. Open file /usr/share/roundcube/plugins/password/drivers/vesta.php

2. Find a line that contain: function password_save($curpass, $passwd)

3. Delete that line

4. On the same place, write: class rcube_vesta_password {
function save($curpass, $passwd)


5. At the end of file write: }

6. Save the file.

Re: Impossible to change email user password from Rouncube

Posted: Sun Jan 31, 2016 12:34 pm
by MrConstantine
Sorry. But this method does not work. I checked several times, the password is not changed.I did the points as you have written.

Re: Impossible to change email user password from Rouncube

Posted: Sun Jan 31, 2016 12:35 pm
by MrConstantine
OS: Debian 8.2 Jessie
VestaCP 0.9.8 - 15

Updates all relevant. But still it does not work to change your password.

Re: Impossible to change email user password from Rouncube

Posted: Sun Jan 31, 2016 3:50 pm
by dpeca
In SSH as root run:

Code: Select all

chown admin:admin /var/log/roundcube
Now try to change a password.
Then open /var/log/roundcube/errors and paste log here.

It's very possible that you also have a second bug (I had it too), fsockopen can not connect to SSL.
Patching is easy, just confirm my suspicion.

Re: Impossible to change email user password from Rouncube

Posted: Sun Jan 31, 2016 4:12 pm
by dpeca
To speed up things, here is what I also did:

1. Open /etc/roundcube/plugins/password/config.inc.php
2. Find: $rcmail_config['password_vesta_host'] = 'localhost';
3. Change localhost to your server hostname (if you are not sure what is your hostname, open /etc/hostname file)
4. Also, if you changed Vesta port, change it here too, you will find in next line $rcmail_config['password_vesta_port']
5. Save the file.

Keep in mind that this will works only if you applied my first patch too.

Re: Impossible to change email user password from Rouncube

Posted: Mon Feb 01, 2016 12:40 pm
by MrConstantine
Hi,
He performed all the items, but to no avail.

An error occurred!
Could not save new password.

Re: Impossible to change email user password from Rouncube

Posted: Mon Feb 01, 2016 1:00 pm
by MrConstantine
Thanks for the help. But something does not come out.