This could possibly be because SSL certificate verification failed

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
dimas
Posts: 15
Joined: 20 Jan 2015, 15:41

This could possibly be because SSL certificate verification failed

Post 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
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: This could possibly be because SSL certificate verification failed

Post 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
dimas
Posts: 15
Joined: 20 Jan 2015, 15:41

Re: This could possibly be because SSL certificate verification failed

Post 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...
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: This could possibly be because SSL certificate verification failed

Post 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/
Post Reply