Even if everything is correctly configured, the anti‑spam system can still block your hosting if it detects patterns it considers suspicious. The fact that the headers show dkim=pass, spf=pass and dmarc=pass proves that your technical setup is correct, but the block isn’t based on that alone
The problem is that you’re using shared hosting to send transactional emails, and as far as I know, shared hosts aren’t designed for bulk or transactional email sending. The anti‑spam system is intended to protect the server, and it’s very prone to blocking this type of traffic.
My advice is to use an external transactional email service such as SendGrid, Mailgun, or Amazon SES, which are specifically built for this kind of email.
I already know this guide, and have already followed the email‑writing advice.
Apparently, that doesn't prevent them from being considered spam...
Anyway... In terms of volume, I have to send (to myself, that is) about 40 or 50 emails per day... It doesn't seem to me that this is a huge volume!
Using an external email‑sending service seems quite complex for so little... especially since this is a non‑commercial project (which doesn't generate revenue, so I'm trying to keep costs down).
In short, if OVH blocks at 50 emails that I send to myself, that's a real limitation on their part...
I opened a ticket... (I haven't received any alert from them as is usually the case)
And on top of that, the stats are incorrect: 0 emails sent since 19/09, which is obviously not the case (indeed, if that were true, no spam would have been detected!).
That's not curious at all; I've noticed the same thing every time after opening a ticket, after a more or less long delay, but for how long? In a way it's reassuring because it means that the lack of an immediate response from support does not mean inaction, but it's also disconcerting because the problem hasn't been resolved, or is unacknowledged, and now we live with the constant fear of the next crash.
Here, a support intervention will be necessary for two reasons:
The PHP mail function is being blocked as spam; if this is illegitimate, the dedicated team must take the necessary steps to prevent it in the future.
The statistics are not updating and remain at zero within the client area.
If a ticket has been opened on your end, please wait until it is processed. If needed, do not hesitate to contact support by phone at 1007 or via live chat from your client area.
The emails generated by mail() – thus without providing a login/password – are the only ones counted.
If in doubt, you can identify these emails from the SMTP headers:
Received: from localhost.localdomain (localhost [127.0.0.1])
by localhost.domain.tld (Postfix) with ESMTP id 2E3A388
for xx@xx; Thu, 29 Oct 2026 08:42:36 +0100 (CET)
Authentication-Results: ovh-mailtrap; auth=pass (1793259756) smtp.auth=xx@xx
X-Sender-ID: user#@cluster112
Received: by cluster112.hosting.ovh.net (Postfix, from userid user#)
id 086051E4; Thu, 29 Oct 2026 08:42:36 +0100 (CET)
In 2026 you don’t send email from a shared hosting using the mail() function...
You go through providers whose job that is (Sendinblue, AWS, etc.) and use APIs to send the emails...
If you use unreliable, outdated methods, don’t be surprised by recurring problems...
@Sich: If you had read my original post, you would know that I don’t use the mail() function and that all my mailings use DKIM signatures, SPF authentication, and have a DMARC policy. (All of this based on OVH’s good advice, by the way).
On the other hand, when it comes to hosting a personal project that brings in no revenue, you don’t necessarily consider using email service providers for fewer than ten sends per day.
If OVH isn’t capable of making its own SMTP servers accept signed emails from one of its own hosting services, that is, in my view, a problem.
So, I'm doing my own support since OVH's support is not very helpful.
In fact, you have to go to the "MX Plan" section, and there you can see that the user is blocked for SPAM (even though I obviously don't send any... OVH's filters are apparently configured incorrectly).
To unblock the user, it says to change the password.
Since the email address has been blocked for spam, a support intervention is required. Feel free to contact support by phone at 1007 or via Livechat (between 8 am and 6 pm).