Webmail Login Success But Redirect to Roundcube Login Page
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 user1@domain.tld I click CHECK EMAIL botton and success to login to Roundcube inbox. Then I close this window.
Next I click user2@domain.tld 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 ?
-
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. 0 -
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 0 -
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. 0 -
@scottrichardson - if the issue is just with one email address, it seems more likely to be a browser issue than something on the server. If you try a different browser does the issue still happen? 0 -
@scottrichardson - if the issue is just with one email address, it seems more likely to be a browser issue than something on the server. If you try a different browser does the issue still happen?
Yes it does it happens on different devices we cant login to one user but 50+ rest works fine. I can see in headers its sending expired cookies1 -
@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. 1 -
@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.1 -
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. 0 -
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 @cPRex0 -
That sounds like a plan! 0 -
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.0 -
I'm glad that got you pointed in the right direction! But yes, you're always welcome to open a ticket with our team if you have root access to the server. 0 -
Same problem with my client, 3 of his account working fine 1 is creating problem of redirect after click on roundcube to check email,
restarted exim but not solved.
set $config['session_lifetime'> = 20;
but still not work.its always showing error of "redirected you too many times." after click on roundcube icon into webmail
0 -
Pawan Dhiman - I wouldn't expect a restart of the Exim service to have any influence on the Roundcube interface.
Do you see anything in the main cPanel log (/usr/local/cpanel/logs/error_log) or the Roundcube log (https://support.cpanel.net/hc/en-us/articles/360054983694-Where-can-I-find-the-Roundcube-error-log) when this error happens?
0
Please sign in to leave a comment.
Comments
15 comments