Fix PHP Mail Spam Issues

Job ID: 40184670

Budget: $30 – $250 USD

My site still relies on PHP’s native mail() to send order confirmations, password resets and contact-form notices. Gmail, Hotmail/Outlook and other major providers accept the messages but immediately label them as spam, so users miss them.

My site is a gay adult site. We have 26K members. We NEVER spam, ever. We only send emails/newsletters to our own members.

We have the right to send 26k emails to our members on any given day, but our emails are improperly tagged as spam. Here are 3 samples of the rejection notices we regularly receive:

<email nameXXX>: host msn-com.olc.protection.outlook.com[52.101.68.13]
said: 550 5.7.1 Unfortunately, messages from [67.223.119.156] weren't sent.
Please contact your Internet service provider since part of their network
is on our block list (S3150). You can also refer your provider to
http://mail.live.com/mail/troubleshooting.aspx#errors. [Name=Protocol
Filter Agent][AGT=PFA][MxId=11BCB38AFE279779]
[DB1PEPF000509F4.eurprd02.prod.outlook.com 2026-01-25T10:20:19.953Z
08DE59C5826AD1FF] (in reply to MAIL FROM command)

<email nameXXX>: host gmail-smtp-in.l.google.com[142.251.181.27] said: 550
5.7.1 [TCR] Our system has detected unusual activity from your account.
Contact your service provider for support (in reply to MAIL FROM command)

and

<email nameXXXXl>: host gmail-smtp-in.l.google.com[192.178.164.27]
said: 554 5.7.1 Rejected due to high probability of spam (in reply to end
of DATA command)

Since our server is set up to send emails and we have had emails sent out for nearly 20 years, we do not want to pay for a 3rd-party email service.

What’s already in place
– DKIM and DMARC records are published and pass basic checks.
– No third-party gateway; everything is sent directly from the server over port 25.

What I need from you
1. Pinpoint why the current headers or server reputation are triggering spam filters.
2. Add or correct the missing SPF record and align it with the existing DKIM/DMARC setup so all three pass.
3. Optimize the PHP mail() configuration (or suggest a lightweight SMTP alternative if that is the cleaner fix).
4. Run deliverability tests and provide proof that fresh messages land in the primary inbox of at least Gmail and Outlook.

If you prove you understand this issue, I can give you SSH and DNS access for record updates, plus sample emails and logs. Once your changes are live I’ll run real-world tests; payment is released when new messages consistently arrive without the spam label.
Related categories: Web Hosting Email Handling SMTP SendGrid cPanel