How To Log Emails Sent With PHP's mail() Function To Detect Form Spam
Aug 11, 2009, 01:33 (2 Talkback[s])
[ Thanks to Falko
Timme for this link. ]
"If you have more than a few websites, it is a pain to
detect which of the sites is vulnerable and sends the spam emails.
This tutorial explains the installation of a small wrapper script
which logs email messages sent trough the PHP mail() function. I'm
using Debian Linux here for this tutorial but the script should
work on any Linux distribution."