Page 1 of 1

RainLoop unable to change password.

Posted: Fri Jan 22, 2016 7:25 pm
by TopeZ
As far as I know Rainloop is not talking to the VestaCP mail accounts for domains to change the password.

I discovered a VestaCP Change Password plugin @ https://github.com/RainLoop/rainloop-we ... e-password at the RainLoop GitHub, I was concerned that it would not work because it was not listed in their downloadable plugins from the RainLoop Admin section. After installing it manually, turns out I was right unless I am doing something wrong in the configuration.

Only way my users can change passwords successfully is having my users go to their roundcube change the password there and then continue to use RainLoop, lets be honest that's retarded.

Can anyone help me out? I've tried POPPASSD but that doesn't seem to work as well.

I'm loving RainLoop and it's so much better than RoundCube so far when it comes to ease of use and similarity to Gmail which my users love.

Re: RainLoop unable to change password.

Posted: Sat Jan 23, 2016 1:08 pm
by imperio
Rainloop officially is not supported by Vesta

Re: RainLoop unable to change password.

Posted: Sat Feb 20, 2016 12:59 am
by sacredwebsite
@TopZ

I am seeking a similar answer.
I am getting "Could not save new password" even after assigning the fields in the configuration.

Plugin in question:
https://github.com/RainLoop/rainloop-we ... e-password

I am questioning if it is my configuration.
Vesta Host
Allowed patterns: {user:host-imap}, {user:host-smtp}, {user:domain}

I will look into it further. I am not expecting vesta support. just using this as discussion for others using this same plugin.

Re: RainLoop unable to change password.

Posted: Wed Apr 06, 2016 4:06 pm
by quatroweb
Hi sacredwebsite,

Did you find a solution for this changing password in Rainloop?

Re: RainLoop unable to change password.

Posted: Fri Jul 08, 2016 3:21 pm
by SS88
This works for me? I just made sure the field Vesta Host was set to localhost

Re: RainLoop unable to change password.

Posted: Sat Oct 07, 2017 6:47 pm
by danielz
This is old of course, but I have a work setting.

First:
You need to configure your panel SSL settings;
Read this How-To: https://blog.flaunt7.com/how-to-use-let ... gin-panel/

Second:
You need to download the vesta-changepassword-rainloop here:
https://github.com/RainLoop/rainloop-we ... e-password

Third:
You need to edit the file:
VestaChangePasswordDriver.php

Then change this lines:

$sHost = \trim($this->sHost);
$sHost = \str_replace('{user:host-imap}', $oAccount->Domain()->IncHost(), $sHost);
$sHost = \str_replace('{user:host-smtp}', $oAccount->Domain()->OutHost(), $sHost);
$sHost = \str_replace('{user:domain}', \MailSo\Base\Utils::GetDomainFromEmail($sEmail), $sHost);
$sHost = \rtrim($this->sHost, '/\\');
$sHost = 'https://'.$sHost;
To:

$sHost = \trim($this->sHost);
$sHost = \rtrim($this->sHost, '/\\');
$sHost = 'https://'.$sHost;
Just remove the lines:
$sHost = \str_replace('{user:host-imap}', $oAccount->Domain()->IncHost(), $sHost);
$sHost = \str_replace('{user:host-smtp}', $oAccount->Domain()->OutHost(), $sHost);
$sHost = \str_replace('{user:domain}', \MailSo\Base\Utils::GetDomainFromEmail($sEmail), $sHost);
Then in Plugin "vesta-change-password" - RainLoop ADMIN, set the value:
your-panel.your-domain.com (SSL, letsencrypt with right settings).

Sample error with WRONG SSL CONFIG:
INFO[WARNING]: cURL: Error: SSL: certificate subject name 'mypanel.mydomain.com' does not match target host name '127.0.0.1'

Here work 100%.

If you have any problem tell me.

Re: RainLoop unable to change password.

Posted: Wed May 15, 2019 2:07 am
by Elfy
Working great for me @danielz! Thanks for coming back and posting the solution!