YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.73k stars 749 forks source link

Connection to storage server failed. Roundcube mail issue #7833

Closed bangde closed 5 years ago

bangde commented 6 years ago

Issue

I am trying to connect to round cube and when I try to connect I get the error after some time loading about 1-2 minutes. That the connection to storage server failed

Actual Behavior

The error is Connection to storage server failed.

Expected Behavior

I would like to be able to use roundcube to access my mail

How to trigger the error

1. 2. 3.

Screenshot of configuration

PHP/Apache/Browser Logs

Your Environment

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/62556864-connection-to-storage-server-failed-roundcube-mail-issue?utm_campaign=plugin&utm_content=tracker%2F9760560&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9760560&utm_medium=issues&utm_source=github).
ldgbc commented 6 years ago

Need logs for something like this. Please learn how to enable debug logs.

My best suggestion is to figure out if it YOUR email server having issue, configuration issue or administration error.

Best to test it with a well know email server that is more "open" (yahoo, hotmail, gmail, etc). See if that work.

bangde commented 6 years ago

Thank you. I will enable the debug logs.

My server configuration is correct. I am using Zoho mail and the system was able to send a test email to my Zoho mail. The issue is starting Roundcube in the CRM system.

I will take your advice and enable the debug log and post what I get

bangde commented 6 years ago

hi there after going to my log i can see this issue

[25-Aug-2018 01:46:45 +0800]: <8985decf> IMAP Error: Login failed for sheldon@sjconsultinggroup-asia.com from 210.185.167.135. Empty startup greeting (mail.sjconsultinggroup-asia.com:993) in /home/smartfar/crm.smartfarms.asia/public_html/modules/OSSMail/roundcube/program/lib/Roundcube/rcube_imap.php on line 196 (POST /public_html/modules/OSSMail/roundcube/?_task=login&_action=login)

ldgbc commented 6 years ago

Can you screenshot your Mail setting? https://gitdeveloper.yetiforce.com/index.php?module=OSSMail&parent=Settings&view=Index&block=8&fieldid=94

Can you also log in this: https://mail.sjconsultinggroup-asia.com:2096/ Then find where it say IMAP or POP or Mail Setting?

bangde commented 6 years ago

Hi there PLease see the screen shot of my mail settings smartfarms_current_settings

This is my server mail settings mail setting screenshot

ldgbc commented 6 years ago

Everything seem good on the email setting. So it most likely Installation or Server configuration.

Are you able to do a test on a XAMPP version? Can't really help you any further, this is out of my league.

thejdc commented 6 years ago

@bangde If you are still having this issue please read this post: https://github.com/roundcube/roundcubemail/issues/6016 . I was having the same issue as you are. In that post CRtEurope posts: "Change $config['default_host'] = 'tls://mail.example.com'; to $config['default_host'] = 'ssl://mail.example.com'; in the IMAP section. Then it should work."

No need to edit any files. Just add the ssl:// or tls:// to your server names in your mail settings, for example ssl://mail.sjconsultinggroup-asia.com . Hopefully it will work. I notice you have the box checked for adding this automatically (I think thats what its supposed to do) but I don't think it's doing it.

Hope that helps, good luck.

rskrzypczak commented 5 years ago

Yes, add ssl:// or tls:// to the server name like @thejdc said. Check if you disabled verification of ssl https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/config/modules/OSSMail.php#L69-L80 If this doesn't help try to enable roundcube logs (link), maybe that will provide some answers https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/config/debug.php#L81-L101.