Tuesday, October 8, 2013

How to log Script Filename of Emails Sent by PHP Mail() Function to Detect Spam

Today I faced a server that seemed to was abused by some spammers.
I spent 6 hours to find a solution about how to Log mails and mail sender scripts in php...
Finally found that the PHP > 5.3 has the feature itself!!

Just enable "mail.log" in your php configuration and It will log each mail and the script which sends it...

It's also recommended to enable "mail.add_x_header", It'll make it easier to address spam complaints sent  from your servers...

1 comment:

  1. When sourcing materials for utility or infrastructure projects, choosing the right Underground Protection Mesh suppliers is critical. Reputable suppliers provide mesh in various sizes and strengths to suit different applications. The mesh should be corrosion-resistant, brightly colored, and easy to install for maximum effectiveness. Look for suppliers that prioritize fast delivery, competitive pricing, and quality assurance. Working with dependable suppliers ensures you receive consistent, high-grade materials for long-term underground protection.

    ReplyDelete

How to Stream RTSP / Webcam / IP Camera Over the Web

I had a Hikvision IPC-B120 that provides a simple RTSP stream, which I could view in VLC. I also wanted to see my Logitech BRIO’s feed in a ...