Webmail Login Success But Redirect to Roundcube Login Page

indostreamhost

Registered
Jul 7, 2020
1
0
1
Indonesia
cPanel Access Level
Root Administrator
Hello,

I have problem with Webmail and one of email address

In my case, I login to cpanel account hosting and from inside cpanel dashboard, I go to link Email Accounts. From list email address example [email protected] I click CHECK EMAIL botton and success to login to Roundcube inbox. Then I close this window.
Next I click [email protected] and CHECK EMAIL bottom and new window page redirect to Roundcube login page.
Try change password and get same result.

Does any one can help ?
 

andrew.n

Well-Known Member
Jun 9, 2020
951
352
63
EU
cPanel Access Level
Root Administrator
so what you want to achieve here? Do you want to change the password of the email account? You can do it from RoundCube and also from cPanel if you go to Email Accounts and instead of Check email you click on Manage.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
That autologin feature relies on cookies to complete, it sounds like it's saving the old session when you're attempting to log into the new account. I'm curious if loosening cookie IP validation in Tweak Settings would resolve this
 
Nov 21, 2019
12
1
3
Australia
cPanel Access Level
Root Administrator
I'm having this issue too with one particular email address. I have tried the fixes posted above including loosening cookie ip validation, along with deleting the cube.db file for the account, all to no avail.

Any help is greatly appreciated.
 

r1nk0

Member
Feb 24, 2023
10
1
3
United Kingdom
cPanel Access Level
Root Administrator
@r1nk0 - can you get me more details on what you're seeing happening with your situation? This original thread is a few years old, so any additional details you have would be helpful.
Hey @cPRex thanks for replying, so what exactly was happening after the cpanel got updated to version 108.0.13 two of email accounts had this issue. User goes to webmail url and logins there and we see green notification Login success and then it redirects to index.php asking to login again. We are using Roundcube.
So I went for headers first and I saw that once login was success instead setting correct headers it would set headers to expire in 2-3sec.
I went instantly to check roundcube "config.inc.php" file I know I changed $config['session_lifetime'] = 10; //minutes so i though maybe on update was changed back, but that was fine. What I did later is I went in WHM->Tweak settings and disabled Cookie IP validation and nothing was happening still same issue with those two mailboxes. Then I went and changed $config['session_lifetime'] = null; restarted exim and nothing worked none of the mailboxes. After that i changed it back to $config['session_lifetime'] = 10; restarted exim and it all started working. What I don't understand is why was this happening to only to two email accounts and the rest of them worked perfectly fine.
I would really like to know what could cause this so I could prevent it from happening again.
I really hope I was clear enough and you could understand what is going on here.
Thank you.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,425
2,259
363
cPanel Access Level
Root Administrator
I'm honestly not sure what would have caused that behavior. I can say that restarting Exim wouldn't have had an affect on this as Exim isn't related to the webmail connection at all, unless you're actively sending a message. All that is handled by the Dovecot server and the webmail tool itself.

It seems like the session_lifetime value is the most likely culprit here. I can confirm that "10" is the default value on a stock cPanel server in this file.
 
  • Like
Reactions: r1nk0

r1nk0

Member
Feb 24, 2023
10
1
3
United Kingdom
cPanel Access Level
Root Administrator
I'm honestly not sure what would have caused that behavior. I can say that restarting Exim wouldn't have had an affect on this as Exim isn't related to the webmail connection at all, unless you're actively sending a message. All that is handled by the Dovecot server and the webmail tool itself.

It seems like the session_lifetime value is the most likely culprit here. I can confirm that "10" is the default value on a stock cPanel server in this file.
Yes it looked to me like the session_lifetime was not read correctly or smth. But all good now. If it happens again I will submit a ticket so you guys can check it out exactly why it's happening. Thank you for everything @cPRex
 

r1nk0

Member
Feb 24, 2023
10
1
3
United Kingdom
cPanel Access Level
Root Administrator
That sounds like a plan!
Can I submit a ticket so someone can take a look at it. It just happen again with one mailbox the rest are working fine.

EDIT: @cPRex just to update you I found what was going on nothing to do with configuration or anything. That one mailbox was was constantly being attacked by bruteforce so cPHulk was locking it down. I have blocked the attack and whitelisted our office IPS now everything works perfectly fine. Thank you for pointing dovecot to me thats where I went to see the logs and was able to narrow it down. I need to buy you a beer.
 
Last edited: