There may be many reasons why you can't login to your email accounts on RainLoop. In my case, I was getting the Authentication Failed error whenever I tried to login to my email account. I was getting this error even though I was trying to login with the correct email and password.
As it turned out it was a Dovecot error. You can follow the below steps to find out if you have the same issue and how it can be fixed.
Open your terminal and use the following command to start capturing Dovecot log:
journalctl -f | grep dovecot
Then try to login to your email account on RainLoop. This will cause the previous command to display Dovecot log on your terminal. Now, go back to your terminal too see the captured log printed on your terminal. In my case the error was something like this:
Aug 23 21:37:41 panel.example.com dovecot: auth: Fatal: sql: Unknown database driver 'mysql' Aug 23 21:37:41 panel.example.com dovecot: master: Error: service(auth): command startup failed, throttling for 2.000 secs Aug 23 21:37:41 panel.example.com dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<Q6it00EKxH1/DACB>
Just from the first line you can see it is giving an
Unknown database driver 'mysql' error. Now to stop capturing Dovecot log, like everything else, you can press
Ctrl + C.
Then to fix this error, you can use the following commands:
apt remove dovecot-core dovecot-mysql dovecot-pop3d dovecot-imapd
sed -e '/deb/ s/^#*/#/' -i /etc/apt/sources.list.d/dovecot.list
Note: this previous line beginning with the
sed command, may not be necessary and throw an error. In that case, don't worry about it, just continue to the next line.
apt clean all
apt install dovecot-core dovecot-mysql dovecot-pop3d dovecot-imapd
apt-get install -y libmysqlclient-dev
Then use the following command to check Dovecot status
systemctl status dovecot -l
This should give you the Dovecot status log. In my case it was something like this:
● dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor prese> Active: active (running) since Mon 2021-08-23 21:56:36 UTC; 1h 42min ago Docs: man:dovecot(1) http://wiki2.dovecot.org/ Main PID: 52936 (dovecot)
Now, try to login to your email account on RainLoop. It should work just fine.