Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22232 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44710 invoked by uid 1010); 7 Mar 2006 21:53:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44695 invoked from network); 7 Mar 2006 21:53:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 21:53:35 -0000 X-Host-Fingerprint: 81.103.221.47 mta07-winn.ispmail.ntl.com Solaris 8 (1) Received: from ([81.103.221.47:30417] helo=mta07-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F9/D3-27106-ED00E044 for ; Tue, 07 Mar 2006 16:53:35 -0500 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mta07-winn.ispmail.ntl.com with ESMTP id <20060307215330.NZN15056.mta07-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Tue, 7 Mar 2006 21:53:30 +0000 Received: from [192.168.0.22] (really [86.2.124.185]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20060307215329.HIZ1353.aamtaout03-winn.ispmail.ntl.com@[192.168.0.22]> for ; Tue, 7 Mar 2006 21:53:29 +0000 Message-ID: <440E0187.5040102@fission.org.uk> Date: Tue, 07 Mar 2006 21:56:23 +0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: mail addition From: gareth@fission.org.uk (Gareth Ardron) Hi, Sort of mailing this in as the result of the rantings of quite a few mates of mine who look after shared hosting boxes. Would it be acceptable to do up a patch for the mail() function which'll listen to an ini entry[0] for a logfile to log all mail sent using this function. Basically, the reasoning boils down to when some naive user writes a little bit of a bad script then somebody exploits that nasty script, there's no way to tell which virtualhost has sent which mail and to whom. The format I'm thinking of is: [timestamp] [http_host] [script] [subject] [from] If I could work out a way to do this as a pecl module, I'd be more than happy to, but I can't see such a way - If anybody can point me in the right direction here though, please shout. I'm more than happy to draft up a patch for this rather than just talking about it, and I do feel it's an important issue - not least in order to kill a certain amount of the FUD that I hear about php on this issue. [0] I know, ini entries bad - but for this purpose, justified I feel. I'd like to do two: mail_log = bool & mail_logfile = string. Opinions? Good or bad? Should I go ahead with doing up a patch or not ? Cheers. -- Gareth Ardron