Restricted Notes by a Geek

Tag: plesk mail header spam script

PHP Mail header patch

by Tinuva on Mar.19, 2009, under Plesk

Being in the hosting industry, you always have a few dirty clients, and those who just don’t care to keep their website secure, especially in the shared hosting environment.

On plesk for linux this wasn’t a big issue, as you could easily track down the domain as qmail log the user id in the headers that sent the mail. Still though it is always a mission going through the logs to figure out the script and the sender’s ip.

Since I found this patch, not anymore. Its a golden jewel in fact, it adds a header to the outgoing mail, with the complete url as well and the sender ip making these problems just a little annoyence you need to stop quick and then handle the issue with our client from there.

I present you the original link: http://www.lancs.ac.uk/~steveb/patches/php-mail-header-patch/
A newer patch available for for newer version of php at: http://choon.net/php-mail-header.php

Example of what the header will look like:

X-PHP-Script: www.example.com/~user/testapp/send-mail.php for 10.0.0.1

Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...