Page 1 of 1

Unable to connect to POP3 over tls

Posted: Tue Mar 29, 2022 12:45 am
by Murrian
Script URL:
Version of script: 3.2.5
Hosting company: standard cpanel hosting
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: "hesk pop3 refused to connect smtp ok" "hesk v3 pop error: 111 could not connect to the host connection refused"

Write your message below:
Hello, I seem to have a bit of an odd problem, I can set-up SMTP access for Hesk no problem, and it works, emails are coming from the address specified. However when trying to configure POP3 access following this guide:
https://www.hesk.com/knowledgebase/?article=65
I get to the "test" step after punching in the pop3 details and it says
"Error: 111 could not connect to the host "<domain here>": Connection refused"
which is the same domain, username and password as the SMTP which works fine, I'm using the correct port (995) for ssl/tls and the tls check box is on. (though I've tried turning it off with no difference).

If I change the port to the none ssl/tls version (110) and have the tls dongle off, the connection is successful, so it seems HESK isn't doing the tls/ssl correctly? It's accessing a cpanel mailbox hosted on the same server, if that has a bearing.

Obviously I'd prefer a secure connection, there shouldn't be sensitive information flowing over the tickets, but still, I'd prefer to be doing things properly.

[edit] Forgot to mention, I added the account to my outlook application over tls/ssl port (995) and it worked fine, so seems the platform end is ok and this is isolated to hesk?

Kind regards

Re: Unable to connect to POP3 over tls

Posted: Tue Mar 29, 2022 7:54 am
by Klemen
Usually this either means the 995 port is blocked on the server where Hesk is installed on, or perhaps the SSL server or peer certificate validation fails (again something server-side controlled).

Have you tried IMAP connection instead with any luck?

Re: Unable to connect to POP3 over tls

Posted: Wed Mar 30, 2022 2:04 am
by Murrian
Thanks Klemen,

I have the same error on IMAP (sorry, should've mentioned) and I can connect fine with the Outlook desktop app to the account over POP3 on 995 so don't believe it's blocked at the server - the mail account and website are on the same cpanel so would've expected that to be a benefit too?

Re: Unable to connect to POP3 over tls

Posted: Thu Mar 31, 2022 4:11 pm
by Klemen
Are you able to connect to any other POP3/IMAP server from Hesk (like your own server)?

Re: Unable to connect to POP3 over tls

Posted: Thu Mar 28, 2024 11:33 am
by marksiwale
Klemen wrote: Thu Mar 31, 2022 4:11 pm Are you able to connect to any other POP3/IMAP server from Hesk (like your own server)?

Good Day,

I seem to be experiencing the same issue. note that from my local machine, the test went well and successfully. Once moved to the server environment am getting an Error: 111 could not connect to the host "mail.mydomain.xx": Connection refused.

Re: Unable to connect to POP3 over tls

Posted: Thu Mar 28, 2024 1:50 pm
by Klemen
This likely means that the server is blocking the port you are using. Open the port in the firewall.

Re: Unable to connect to POP3 over tls

Posted: Mon Apr 01, 2024 7:59 pm
by marksiwale
Klemen wrote: Thu Mar 28, 2024 1:50 pm This likely means that the server is blocking the port you are using. Open the port in the firewall.
The Hesk help desk was setup on a cloud system running on Cpanel. the email are being hosted on an email server and the hesk on an app server which is running Cpanel

Re: Unable to connect to POP3 over tls

Posted: Tue Apr 02, 2024 5:54 am
by Klemen
It doesn't matter if you use CPanel or not; what matters is the ports that are blocked in the firewall.

You may need to check with your hosting company. Some, for example Godaddy, completely block access to external mail servers.

Re: Unable to connect to POP3 over tls

Posted: Mon Apr 08, 2024 7:31 am
by marksiwale
Klemen wrote: Tue Apr 02, 2024 5:54 am It doesn't matter if you use CPanel or not; what matters is the ports that are blocked in the firewall.

You may need to check with your hosting company. Some, for example Godaddy, completely block access to external mail servers.
Hi. @Klemen. thanks for the tip. in the end I just assigned another port and the servers connected