When i do this, I run into the above error!
Error configuring IMAP - stream_socket_client Unknown Error
KevinTheJedi Yes i do have email fetching enabled globally
Ahh network unreachable is the error. Seems like that host or port is blocked on your server. You need to contact your server admin and/or hosting provider to have them look into why you cannot connect to that host and port from your webserver.
Cheers.
If you have a external web hosting company contact them like Kevin suggested.
If you are running your own server (in house or in the cloud) you would want to check logs for any security software you are running on the host.
Or if you have your own firewall it could also blocking.
If you do, check firewall logs to see why its getting blocked.
Hello,
Unfortunately, we are facing the same issue with our osTicket installation (ubuntu VM):
We cannot connect to the on-premises exchange mail server 2019 (contains trusted, third-party signed SSL certificate) through osTicket:
because we get the exact same error:
which changes when I add the tls:// prefix to the mail server name:
I could not find anything related to the issue in the local log files (web server or php) and I have petitioned and waiting for the mail server logs.
Not sure how to proceed regarding the SSL certificate, any help is welcome.
Sounds like that port is blocked on your server/firewall or maybe your host doesn't allow external IMAP/POP3? If using Microsoft it's likely you are forced to use Modern Authentication.
Cheers.
Chefkeks
Hi
Osticket installed on windows or linux ?
after trying the fix you have mentioned ticket page gets white screen.
- Edited
Those changes are already merged into v1.18.1.
Here is the fix from the OP:
Cheers.
When experiencing issues it's always in your best interest to upgrade to the latest release available. This is so you have all the latest bug fixes, security patches, etc.
With this being said there is no guarantee that upgrading will resolve your issue. Typically this error means the webserver cannot connect to the given mailserver for whatever reason. Could be a firewall issue, blocked ports, etc.
Cheers.
I have a similar issue configuring mandrill to send emails, the error is
cannot connect to host; error = stream_socket_client(): Unable to connect to tcp://smtp.mandrillapp.com:587 (Connection refused) (errno = 0 )
That means your server cannot connect to the host and port. Could be a firewall issue, blocked port, maybe your server needs to be white listed in the mail server, if you are using a hosting provider external smtp could be blocked, etc. A good test would be to try to telnet to the host and port from the server’s cli.
Also, you should always start your own thread for issues.
Cheers.