Page 2 of 2

Re: GMAIL POP and IMAP

Posted: Tue Nov 28, 2017 10:49 am
by admec
I have just done the described setting change in PHP.ini and that fixed my problem with connection to gmail.

For a couple weeks I have been denied access to our mail account from HESK, but I had the option to run through a SMTP proxy as a backup. But we could not pickup mail respons though.

Seems Google have make it more secure or fixed some bug that. But the fix with the cacert.pem fixed it.

We run a PHP v. 5.6.13, not the newest one, but have worked since day one :)

Re: GMAIL POP and IMAP

Posted: Tue Nov 28, 2017 11:00 am
by Klemen
admec wrote: Tue Nov 28, 2017 10:49 amSeems Google have make it more secure or fixed some bug that.

It's not a bug at Google, but with outdated root certificates on your server :wink:

Re: GMAIL POP and IMAP

Posted: Tue Nov 28, 2017 11:52 am
by admec
Well the server have been running for 2 years now, so the Cert must have quite old on the installed software or Win2012 OS :)

But it seems we have until 2028, before this ca cert will need to be changed :) if google is't rejecting before that time :)

Re: GMAIL POP and IMAP

Posted: Mon Jan 17, 2022 5:23 pm
by emersoncl
Hello everyone,
I know this post is little bit old, but I'll try to leave here my contribution.
I faced the same problem in another e-mail server, actually using POP3 with TLS and port 995.
I checked everything like firewall open ports, server configuration, different connections and ports and nothing works.
Taking a look at the HESK code, in the file inc/mail/pop3.php, it's using fsockopen do connected the POP3 and there's a verification if the TLS is actived and if so, it puts the "tls://" suffix in the host name, and than to fix the problem I just changed it to "ssl://" and Eureka, it worked fine with my sever and probability will work with the GMAIL POP3.
I leave here a suggestion to the HESK team, to change the code and put two options, where the user can choose "TLS" or "SSL" protocol, for fsockopen, it makes a big difference.
If someone test it with Gmail, please let me know if it'll work fine.
Best Regards, :wink:

Re: GMAIL POP and IMAP

Posted: Mon Jan 17, 2022 5:45 pm
by Klemen
I don't know why that works for you, but in my tests tls:// connections to Gmail work normally (and it does for many of the users I know as well)?

Have you tried and are you able to connect to Gmail with ssl://? I'd guess you can't. SSL is an outdated protocol that has been replaced by TLS.

Can you share details about your server (operating system, server software, PHP version, OpenSSL version)?