GMAIL POP and IMAP

Helpdesk for my helpdesk software

Moderator: mkoch227

admec
Posts: 15
Joined: Thu Feb 25, 2016 1:46 pm

Re: GMAIL POP and IMAP

Post 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 :)
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: GMAIL POP and IMAP

Post 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:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
admec
Posts: 15
Joined: Thu Feb 25, 2016 1:46 pm

Re: GMAIL POP and IMAP

Post 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 :)
emersoncl
Posts: 1
Joined: Mon Jan 17, 2022 2:41 pm

Re: GMAIL POP and IMAP

Post 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:
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: GMAIL POP and IMAP

Post 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)?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply