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 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
[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.'