Web Cloud IMAP access from PHP impossible

Since the PHP vulnerability fix on the evening of 10/21/2026, my message‑retrieval procedure from PHP no longer works, whereas everything was working fine before.

I tested with PHP 8.4 and PHP 8.5… I use the Webklex\PHPIMAP library and now get the following error in both cases:

stream_socket_client(): Unable to connect to ssl://ssl0.ovh.net:993 (Connection refused)

Is this directly related to the new PHP version or to a change in the security settings on Web Cloud?

Hi @chefluc69

Have you tried the connectivity manually?

telnet ssl0.ovh.net 993

If the connection is established, you should see an IMAP welcome message. If it fails immediately, the problem is network or DNS resolution.

You can also try imap.mail.ovh.net in case there is any difference in resolution or routing.

Let us know, cheers.
Sergio Turpín

How do you perform a telnet from a web page?

Hi @fritz2cat

I mentioned telnet so you could run it from your machine and rule out whether the problem was the service itself. Afterwards, if the response is correct, you can write a script (for example with the famous PHP :sweat_smile: ) using @fsockopen; if it tells us the connection is successful, the problem would be in the configuration of the PHPIMAP library.

Regards :wink:
Sergio Turpín

On an OVH shared hosting, the telnet, nmap, nc commands that would allow the test are not available.

So I tried the command " echo > /dev/tcp/ssl0.ovh.net/993 && echo ouvert || echo fermé " and I get the following result:

-ovh_ssh: connect: Connection refused
-ovh_ssh: /dev/tcp/ssl0.ovh.net/993: Connection refused
closed

I also tried the same command against other servers (Orange, LaPoste, Yahoo) and I get the same response.

Since these connections work from other machines, I think the shared hosting is blocking outgoing connections to port 993, even within the OVH domain, whereas previously internal connections to the domain were allowed.

Do not draw conclusions from the SSH environment offered by OVH. This environment is heavily restricted and allows virtually nothing as outbound network connections.

The SSH environment and the web environment run on different machines, with different environments and different firewall rules.

Good evening,

We adapted quite a few things on SSH during the summer :sweat_smile:

So you should double‑check

--
Bruno B.
OVHcloud
Team Lead, Shared Infrastructures

Good evening,

If you have a private service name or a CS support ticket... I’d be happy to verify that.

--
Bruno B.
OVHcloud
Team lead shared infrastructures