Portal > Foren > Ankündigungen, News und Feedback > Nachrichten > mail() logging Patch für PHP verfügbar
Antwort
 
Themen-Optionen
Alt 14.12.2006, 08:53 Nach oben    #1
Ben
Benjamin Klaile
 
Benutzerbild von Ben
 
Registriert seit: 02.12.2004
Ort: Remagen
Beiträge: 4.480
Standard mail() logging Patch für PHP verfügbar

Ilia Alshanetsky hat einen Patch für die PHP-Funktion mail() zur Verfügung gestellt. Diese Erweiterung ermöglicht das Logging und Tracking der mail()-Nutzung, um herauszufinden, welche Anwendungen/Skripte für eventuellen Spam missbraucht werden.

Zitat:
The mailing logging patch, which you can download here, offers two features which can be controlled via INI settings for the entire PHP setup or on a per-virtual-host level.

The first option, mail.add_x_header (boolean) allows you to enable the addition of the X-PHP-Originating-Script header to each mail sent by mail(), which will include the uid of the script and its name. The combination of the two should be sufficient to identify the user to whom the script belongs and via a simple find command locate the actual script. This option is intended primarily for instances where you have a bounced e-mail or a forwarded mail with a spam complaint, allowing you to quickly identify the offender.

The second option, mail.log (takes a filename) allows you to enable logging of every single mail() call, each log line will include the fullpath of the file and the line where the mail() was called from in addition to the "To" address and any headers (to keep track of CC, BCC) that were part of the function call. To ensure that each log line is 1 line long, \r and \n are replaced with spaces.
Sicherlich eine interessante Sache, allerdings sei auch dieses Kommentar beachtet:
Zitat:
Suhosin has a similar feature, but much more complete .. anyway is a nice addtional, better late than never
Quelle: http://ilia.ws/archives/149-mail-log...P.html#c191348

Ich selbst kenne die Suhosin-Extension nicht bzw. ich habe nicht damit gearbeitet. Demnach bleibt abzuwarten, was da noch herauskommt.
Ben ist offline  
Add Post to del.icio.usBookmark Post in TechnoratiDiesen Beitrag zu Mister Wong hinzufügen!
Mit Zitat antworten
Antwort

Lesezeichen


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Adventure PHP Framework 1.3 verfügbar dr.e. Projekte unserer Mitglieder 0 18.07.2007 22:59
PHP 4.4.6 stable zum Download verfügbar Ben Nachrichten 2 02.03.2007 14:42
PHP 5 auf mehr als 10% der Server verfügbar Ben Nachrichten 6 13.09.2006 15:13
PHP filter-functions in Version 0.10.0 verfügbar Ben Nachrichten 0 01.09.2006 16:10
PHP 5.1.2 RC1 ist verfügbar Ben Nachrichten 1 28.12.2005 02:09


Alle Zeitangaben in WEZ +2. Es ist jetzt 12:46 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44