Monday, January 19, 2009

6days Delayed,,,am I Pregnant

events function mail () in PHP

Reviewing by blog I read daily, I found an article from the improvements in PHP 5.3.0 that is about to exit. These two facilities are added to the function mail () very useful for system administrators.

One of the most common problems in a hosting server with many domains is to find who is abusing the function mail () and is sending emails, a task from the 5.3.0 version of PHP will be more than simple, and adds two new configuration parameters.

The first is the mail.add_x_header that you enable it from the php.ini or from a php_value, adds a header to the mail X-PHP-Originating-Script the name of the script that is generating the UID mail and it is running. Very useful if we have a return of mail to be sent.

The other parameter, over there a bit more useful, is mail.log that allows us to enable logging to send the emails, saving a local file the script that call the function mail () and some additional fields as recipients of the mail.

With these two new facilities will greatly reduce the time spent on tracking all of that junk mail messages are triggered by exploiting vulnerabilities in some sites.

The good thing is that looking for a little more information about these improvements is that the fall to Blog Alshanetsky Ilia (the developer of this functionality) can find a patch that you can apply to current versions of PHP to get these features, so no need to wait long to start using these features.
Today

0 comments:

Post a Comment