Author Topic: LOGIN: STARTTLS is required.  (Read 233 times)

Offline BUcduX

  • Newbie
  • *
  • Posts: 2
LOGIN: STARTTLS is required.
« on: January 25, 2020, 12:01:31 AM »
When trying to login to my mail server through roundcube I get these errors:

errors.log
Code: [Select]
[25-Jan-2020 04:33:56 +0000]: <upt7otud> IMAP Error: Login failed for test@domain.com 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
Code: [Select]
[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.'
« Last Edit: January 25, 2020, 02:43:20 AM by BUcduX »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,361
Re: LOGIN: STARTTLS is required.
« Reply #1 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline BUcduX

  • Newbie
  • *
  • Posts: 2
Re: LOGIN: STARTTLS is required.
« Reply #2 on: January 25, 2020, 10:43:02 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 :)