Re: imap_open() : which TLS version does it use?
| From: | Rene Veerman | Date: | Mon, 11 Oct 2021 19:09:52 +0000 |
| Subject: | Re: imap_open() : which TLS version does it use? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327750@lists.php.net to get a copy of this message | ||
nevermind, this is not a PHP issue, it's a courier-imap or dovecot issue..
(i can't login using telnet either)...
sorry to have wasted your time, folks.
On Mon, Oct 11, 2021 at 7:52 PM Rene Veerman <
rene.veerman.netherlands@gmail.com> wrote:
> a few steps further, and i've narrowed it down to :
>
> {
> "{192.168.178.21:143\/imap}": "FAIL:[\n \"SECURITY PROBLEM:
> insecure server advertised AUTH=PLAIN\",\n \"Retrying PLAIN
> authentication after [AUTHENTICATIONFAILED] Authentication failed.\",\n
> \"SECURITY PROBLEM: insecure server advertised AUTH=PLAIN\",\n
> \"Retrying PLAIN authentication after [AUTHENTICATIONFAILED]
> Authentication failed.\",\n \"SECURITY PROBLEM: insecure server
> advertised AUTH=PLAIN\",\n \"Can not authenticate to IMAP server:
> [AUTHENTICATIONFAILED] Authentication failed.\"\n]"
> }
>
> is this PHP refusing to use PLAIN authentication? how can i bypass this?
> a google search came up empty :(
>
> On Mon, Oct 11, 2021 at 7:38 PM Rene Veerman <
> rene.veerman.netherlands@gmail.com> wrote:
>
>> ok, i figured that by letting dovecot answer on the internal IP address
>> without any encryption, i would solve my problems..
>> in effect, i'd be accessing my mail using my own webmail component.
>>
>> but the following settings still fail :
>>
>> { "{192.168.178.21:143\/imap\/novalidate-cert}": "FAIL:[\n \"TLS\\\/SSL
>> failure for 192.168.178.21: SSL negotiation failed\"\n]" }"
>>
>> any ideas, please?
>>
>> On Mon, Oct 11, 2021 at 7:21 PM Rene Veerman <
>> rene.veerman.netherlands@gmail.com> wrote:
>>
>>> oh, i was trying to access dovecot using port 143, while i should be
>>> using 993.
>>>
>>> i got another problem though, dovecot is full of zero-day exploits, and
>>> using starttls with certbot forces me to use a domain name, not an IP
>>> address, which means i have to open and forward that on my internet modem
>>> to the machine running dovecot.
>>>
>>> i'm NOT looking forward to opening my machine to remote execution
>>> attacks.
>>>
>>> any suggestions?
>>>
>>> On Mon, Oct 11, 2021 at 6:55 PM Rene Veerman <
>>> rene.veerman.netherlands@gmail.com> wrote:
>>>
>>>> i need to connect to a dovecot server running on ubuntu 20.04, from PHP
>>>> 7.4.3 running on the same server.
>>>>
>>>> i've verified that dovecot is listening on port 143.
>>>>
>>>> i've set
>>>>
>>>> ssl_min_protocol = TLSv1.2
>>>>
>>>> in /etc/dovecot/conf.d/10-ssl.conf
>>>>
>>>> but in my web app, i now get :
>>>>
>>>> {192.168.178.21:143/imap/ssl}: "FAIL:[\n \"TLS\\/SSL failure for
>>>> 192.168.178.21: SSL negotiation failed\"\n]"
>>>>
>>>> so i'm thinking the TLS protocol version that imap_open() in PHP is off
>>>> target.
>>>>
>>>> how do i correct this?
>>>>
>>>