Page 1 of 1

This could possibly be because SSL certificate verification failed

Posted: 07 Apr 2020, 14:53
by dimas
Hi,

I'm trying to configure some mailbox (gmail, yandex, ..) and it always shows the same error when I test it with SSL o TLS:

"Message: Failed to connect to the mail server. This could possibly be because SSL certificate verification failed"

With STARTTLS it takes longer but it throws this error:

Location: Attempt login
[pear_error: message=", " code=0 mode=return level=notice prefix="" info=""]

Any ideas?
Image

Re: This could possibly be because SSL certificate verification failed

Posted: 07 Apr 2020, 15:12
by SL-Gundam
STARTTLS should often be used on the default port 143 (IMAP)

So changing STARTTLS to SSL works for me for gmail (leaving everything else as it is now)

But for gmail you should turn on "Less secure app access"
https://support.google.com/accounts/ans ... 0255?hl=en

Don't know about yandex as i've never used them

Re: This could possibly be because SSL certificate verification failed

Posted: 07 Apr 2020, 17:29
by dimas
Tried with gmail with these settings and the same error:

Mailbox: yandex
Message: Failed to connect to the mail server. This could possibly be because SSL certificate verification failed

Mailbox: gmail
Message: Failed to connect to the mail server. This could possibly be because SSL certificate verification failed

Image

Tried with pop and imap, both enabled on gmail part. Is not possible to have more information about the error? Is some generic this one...

Re: This could possibly be because SSL certificate verification failed

Posted: 07 Apr 2020, 19:26
by SL-Gundam
If you are running the webserver on windows, the certificate library is by default unavailable
So certificates cannot be verified

Please try disabling "Verify SSL certificate". If everything works with that turned off you will need to fix your PHP installation
https://www.saotn.org/dont-turn-off-cur ... iguration/