Roundcube Community Forum

 

LOGIN: STARTTLS is required.

Started by BUcduX, January 25, 2020, 12:01:31 AM

Previous topic - Next topic

BUcduX

When trying to login to my mail server through roundcube I get these errors:

errors.log
[25-Jan-2020 04:33:56 +0000]: <upt7otud> IMAP Error: Login failed for [email protected] against mail.domain.com from 192.168.0.1. LOGIN: STARTTLS is required. in C:\mail\program\lib\Roundcube\rcube_imap.php on line 200 (POST /?_task=login&_action=login)

imap.log

[25-Jan-2020 04:33:54 +0000]: <upt7otud> [D354] Connecting to localhost:143...
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: * OK IMAPrev1
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] C: A0001 CAPABILITY
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL STARTTLS NAMESPACE RIGHTS=texk
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: A0001 OK CAPABILITY completed
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] C: A0002 CAPABILITY
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL STARTTLS NAMESPACE RIGHTS=texk
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: A0002 OK CAPABILITY completed
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] C: A0003 LOGIN ****** [19]
[25-Jan-2020 04:33:56 +0000]: <upt7otud> [D354] S: A0003 BAD STARTTLS is required.


In defaults.inc.php I have the default_port set to 143 & imap_auth_type set to null.

I'm guessing that for some reason STARTTLS is not being used.

Is there anything I can try that may fix this problem?

Edit: I also get this error (on login page) when trying to log in: 'Connection to storage server failed.'

JohnDoh

do you have the tls:// prefix on your $config['default_host']?

ps. you should not edit value in default.inc.php, put your config in config.inc.php instead.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

BUcduX

Quote from: JohnDoh on January 25, 2020, 09:53:15 AM
do you have the tls:// prefix on your $config['default_host']?

ps. you should not edit value in default.inc.php, put your config in config.inc.php instead.

Sorry for the late reply just saw this post.

That was it, thanks for your help and tips :)