Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 52180 invoked from network); 11 Aug 2006 13:47:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 13:47:44 -0000 Received: (qmail 73712 invoked by uid 500); 11 Aug 2006 13:47:40 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 73654 invoked by uid 500); 11 Aug 2006 13:47:40 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 73643 invoked by uid 99); 11 Aug 2006 13:47:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 06:47:40 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 06:47:39 -0700 Received: by wr-out-0506.google.com with SMTP id i3so107438wra for ; Fri, 11 Aug 2006 06:47:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=IbnH2l2n4JaaRm/k0qVxxEExKwEoTwBDIZ6jFoJfZu873LJd8GsgA7raQ05faqNMcV/t5PG7AKIfEOepdTEjiGBmqAzjIh6H+T8hb8nDUUQ0gD11pPCLIdAQNBZYzDztHtRukC4DtVRCDBU/JD2MI6YLD0AkYBgH2W70El0nSNI= Received: by 10.78.136.7 with SMTP id j7mr2169388hud; Fri, 11 Aug 2006 06:47:18 -0700 (PDT) Received: by 10.78.142.9 with HTTP; Fri, 11 Aug 2006 06:47:18 -0700 (PDT) Message-ID: Date: Fri, 11 Aug 2006 09:47:18 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: dev@httpd.apache.org Subject: Re: Tracking CGI Exec Calls In-Reply-To: <44DC7C36.6040706@ieee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DC66E7.2050600@ieee.org> <1155299242.16612.4.camel@cal.cotef.org> <44DC7C36.6040706@ieee.org> X-Google-Sender-Auth: b40ab868c675c1c3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/11/06, Silvio Mazzaro wrote: > Guy Hulbert wrote: > > > What is the problem you are trying to solve ? > > I'd like to know who's using sendmail from the Web. > > > This is a hint ... do you want to prevent CGI scripts from calling > > sendmail ? > > No, It's important for my users to use sendmail from their applications, > but I'd like to control it to avoid spamming problems. > > > I don't think there is anything better than 'strace' (except 'dtrace' on > > solaris) but I have not tried using either. > > Perhaps It is possible to track system calls from mod_perl, but I'm > still studying it... I'll let you know if I find (or someone on this > list) a better solution then 'strace'. I don't know of any way to do this from apache. But you could simply replace sendmail with a script that dumps the relevant info to a log file before passing parameters on to the real sendmail. Joshua.