Ok so maybe I dont quite understand the concept of pipes in Unix.
Here is what Im trying to do. I have web servers that people run CGI scripts from, and alot of them use the sendmail executable to send email from the server by opening a pipe to the sendmail executable and send the message that way.
Unfortunately, alot of people abuse this and send out spam using the sendmail executable. I need to be able to catch the information that they are sending so that I can look for certain things in the subject and body of the message.
Also, I would like to find out what program or script is being used to call the sendmail program, if there is a way to do that.
I am kinda new to *nix programming, so any help would be appreciated.
Thanks,
Gerald
[sig][/sig]
Here is what Im trying to do. I have web servers that people run CGI scripts from, and alot of them use the sendmail executable to send email from the server by opening a pipe to the sendmail executable and send the message that way.
Unfortunately, alot of people abuse this and send out spam using the sendmail executable. I need to be able to catch the information that they are sending so that I can look for certain things in the subject and body of the message.
Also, I would like to find out what program or script is being used to call the sendmail program, if there is a way to do that.
I am kinda new to *nix programming, so any help would be appreciated.
Thanks,
Gerald
[sig][/sig]