After testing a lot (nearly 30 installations of CP on VM´s with Ubuntu 18 and 20 and Centos 7 and 8) I figured out a workaround for the Problem:
Cant login to rainloop.
Because the behaviour ONLY is on Ubuntu Installations I go a lit deeper and figured out:
Cyberpanel in last version (2.1.1) uses bcrypt to encrypt mail passwords to it´s own authentication tabel in database. All passwords starting with {crypt} in the database.
Unfortunally nor Ubuntu 18 or Ubuntu 20 supports bcrypt as authentication for the used dovecot implementation (2.2.x).
So it comes, that password is correct encrypted wit bcrypt to the database by CP GUI, but Rainloop can´t verify the given password, because rainloop is not able to encrypt the entered password with bcrypt.
So any given password will never work!
My workaround is simple: Manual updating to dovecot 2.3.x, because since this version dovecot has build in bcrypt libraries.
You can do it with the following steps:
- Add the reposity key of dovecot to the rpm key store:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 18A348AEED409DA1
- Add the official dovecot Ubuntu Repo to sources.list
(this example is for Ubuntu 18)
sudo nano /etc/apt/sources.list.d/dovecot.list
insert into:
deb [arch=amd64] Index of /ce-2.3-latest/ubuntu/bionic/ bionic main
Save it and close editor
- Do a:
sudo apt update
- Do a:
sudo apt dist-upgrade
- Reboot your machine.
After this Your rainloop login should run like a charme.
At the end I would like to say: I´m shocked, that CP team do big changes to the system (encrypt passwords) without testing it on the supported platforms! If Ubuntu IS SUPPORTED, you should testrun such deeply changes against (new) installations. There are a lot of problems and a lot of reports in forum, but so few solutions for it
I Like CP a lot - I hope you can insert dovecot 2.3. to your installation scripts for CP, so nobody will run again into the trouble. It costs me one week to figure it out…
Best regards,
Kai