On 8/11/06, Silvio Mazzaro <[EMAIL PROTECTED]> 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.

Reply via email to