OVH's anti‑spam filter

Hello,

In 2026, I have detected nine times that the mail() function was blocked on my site; I note that in the manager the service was always active and not blocked for spam, these blockages lasting from a few hours to over 48 hours.

It is possible that this function has been blocked at other periods without me noticing.

A similar blockage for a commercial site is not without consequences, as anyone can imagine.

Each time, the response received a few days later from support told me that everything was fine (after the function was unblocked by support)... the latest replies were supplemented with an explanation mentioning a blockage presumably due to a spam detection, perhaps spam generated by a form on the site, but without any more precise explanation.

This explanation seems unconvincing to me, because, as mentioned above, the manager never indicated a state of mail blocked for spam; I suspect there is another explanation.

Filtering mails sent from scripts hosted at OVH is commendable and legitimate provided the filter is effective.
Now, if it is indeed OVH's anti‑spam filter that is the origin of the blockages encountered by the mail function when it detects a potential spam, including legitimate mails, the action it generates is problematic, because it is not only the potential spam that is blocked, nor the script concerned, nor the domain concerned, but the entire hosting, therefore all hosted domains, without the slightest information sent to the hosting's postmaster ... a real disaster!

From this observation it seems to me that this situation must evolve, at minimum by sending an email to the hosting's postmaster to inform them of the situation, if possible with the address of the script that caused the block and ideally only blocking the mail or the emitting script, but not all scripts of the domain nor all domains of the hosting.

I hope the community will speak up so that the current situation changes.

Best regards

Hello @Driver

The most common causes of these blocks are:

  • Form exploitation :right_arrow: A bot is using your contact form to send massive spam.
  • Malware injection :right_arrow: Someone has found a vulnerability on your site and injected a script that sends spam.
  • Legitimate sending misclassified :right_arrow: The anti‑spam system is sensitive and sometimes treats legitimate emails as spam because of their content (lots of capitals, large images, empty subjects, ...)

I recommend you take a look at this page:

https://docs.ovhcloud.com/es/guides/web-cloud/web-hosting/email-sending-best-practices

If you want your voice to be heard so they improve the system, the proper way is to open a support ticket explaining the situation and suggesting the improvements you propose (notification to the postmaster, selective script blocking). Even if you don’t get an immediate solution, this is how the product team learns the real impact of their policies on customers.

Hope I helped,
Sergio Turpín

Hello @sturpin

I notice I’m not the only one experiencing mail‑sending problems, whether with the mail() function or with PHPMailer.

As mentioned in another thread and by at least one other member, the manager no longer shows the mail‑sending graph, making it difficult to know if a script has been hijacked and used to send spam. But when the information was available I never observed a massive mail outflow and the status was always active, i.e., not blocked for spam.

Opening a ticket to suggest a system improvement doesn’t seem to be the solution, simply because support isn’t intended for that; proof is that, if needed, no support section is offered for this purpose. It seems to me that the forum would be more appropriate, but again that isn’t provided despite many forums!

Hello @Driver, @sturpin, @Asterix and @FabL

On my end, the mail‑sending script using mail(); works perfectly. I just tested it a moment ago.

You probably have a configuration issue with your PHP script. Take a look at the FROM header.

Hello @Driver

If the email‑sending statistics are not shown in your client area, feel free to create a support ticket so we can forward the issue to the team that manages the infrastructure.

Also use this ticket to mention the emails that were not received; the advisors can trace the sends and see whether the emails were blocked within the infrastructure or if it’s a sending issue from your script, as noted by @Gaston :wink:

Astérix

Hello @Gaston @Astérix

Yet just a few days ago, regarding the blocking of the mail() function, you wrote "I have exactly the same problem since Saturday afternoon." Envoi email ENCORE impossible (SPAM détecté) - #4 par Jean_arthurS

I have checked all the headers of my scripts and corrected those that needed it, but it didn't prevent the block, even on phpmailer scripts which cannot be misconfigured.

I continue to think that the problem lies elsewhere.

I wonder whether OVH's anti‑spam filter affects outgoing mails, incoming mails, or both?

As for creating tickets, it's starting to seriously tire me out.

Hi @Driver

Regarding your specific question, OVHcloud's anti-spam filter primarily affects outgoing emails in the context of the blocks you are experiencing. It's important to keep one thing in mind: the system monitors traffic leaving your hosting to detect if spam is being sent. When it detects a suspicious pattern (high volume, strange content, or bounces), it blocks outgoing mail for the entire hosting. The incoming mail filters (the rules you can create in OWA or in the control panel) are a separate layer that applies to what arrives in your mailbox, not to what your scripts send out.

Regarding your other doubt, if the filter acted on incoming mail, Yes, OVHcloud also has an anti‑spam filter for incoming messages, which tags messages with [SPAM] in the subject or moves them to the junk folder. But that filter is not the one blocking your sends; the one affecting you is the outgoing filter.

Kind regards,
Sergio Turpín

Hello @sturpin

Thank you for this feedback, your response is consistent.

Nevertheless, I doubt that the blockages you’re experiencing come from the points raised, and if they do, it seems essential to me that OVH stop staying silent and clearly identify the scripts involved.

Best regards