Author Topic: Roundcube - Connection Error (Failed to reach server)  (Read 393 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Roundcube - Connection Error (Failed to reach server)
« on: December 08, 2025, 08:22:10 AM »
Logged in to user control panel. Use auto login to roundcube

Email 1 - Try sending email I get the error  "Connection Error (Failed to reach server)"

Other 9 email ids works flawlessly

Please suggest

Offline
***
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #1 on: December 08, 2025, 08:35:35 AM »
Error logs say

Quote
[05-Dec-2025 11:05:13 +0000]: <g9kaaxsd> IMAP Error: Login failed for user@dom                                                                             
ain.tld against localhost from 127.0.0.1 (X-Real-IP: 59.93.x.y,X-Forwarded-F                                                                             
or: 59.93.x.y, 59.93.x.y). AUTHENTICATE PLAIN: Authentication failed. in /                                                                             
usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_imap.php on   
line 211 (POST /?_task=login&_action=login)
                                                                         

Offline
*****
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #2 on: December 08, 2025, 01:10:03 PM »
Make sure you have the IMAP option enabled when you built PHP.

Offline
*****
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #3 on: December 08, 2025, 02:02:50 PM »
If it's automated login from the panel, should be using an API key to authenticate. Could be an odd gremlin. Try logging out/logging back in. Or could be some specific problem with the account. Can you test logging in manually? Are you able to reset the user credentials without interrupting customer access?

Offline
*****
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #4 on: December 08, 2025, 02:25:08 PM »
Also what version of PHP and OS are you running?

Offline
***
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #5 on: December 17, 2025, 05:45:49 AM »
Strangely, this is happening to only 1 email id out of 100s of emails across multiple domain names.

Offline
***
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #6 on: December 17, 2025, 09:33:16 AM »
Try to reset the password for the problematic mailbox. Don't use the chars like "!@#%^&" because it could cause problems in some cases.

Offline
***
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #7 on: December 25, 2025, 04:42:34 AM »
The email had a plain signature

Thanks
Firstname lastname

Removing the signature, email is going.

Changing password didnt help

Offline
**
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #8 on: December 25, 2025, 11:00:40 PM »
Try again with your signature & check your Mod security logs, might need to disable one or two rules.

From CWP menu

Security > Mod Security & cick on logs

I had similar issue ages ago & Mod security was denying emails from Roundcube that had anythig more than a few words in the email (was only with Roundcube, all mail from other mail clients worked fine).
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
***
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #9 on: December 27, 2025, 05:13:45 AM »
Thank you. It was mod security issue.

There were issues with mod security paths and the file where I was adding the exception rules


Try again with your signature & check your Mod security logs, might need to disable one or two rules.

From CWP menu

Security > Mod Security & cick on logs

I had similar issue ages ago & Mod security was denying emails from Roundcube that had anythig more than a few words in the email (was only with Roundcube, all mail from other mail clients worked fine).

Offline
*****
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #10 on: December 27, 2025, 05:26:27 PM »
If you are running OWASP CRS you can disable the global rule IDs 981176 and 949110.

Or add the following to your whitelist before the rules load:

SecRule REQUEST_URI "@contains /roundcube/" "id:{some number},phase:1,nolog,allow"
SecRule REQUEST_URI "@contains /roundcubemail-*/" "id:{some number},phase:1,nolog,allow"

Also if you send files you might have to disable certain file extension rules.

Offline
*****
Re: Roundcube - Connection Error (Failed to reach server)
« Reply #11 on: December 27, 2025, 07:28:41 PM »
NOTE: The {some number} mentioned above would use whatever number sequence you are using for custom rules.