[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] OT? Mail to a script/program



> > >> We have set this alias entry
> > >> (alias: "|/home/sites/site41/web/cgi-bin/alias.cgi")
> > >> to activate a script when receive email, but Sendmail answers
> > >> "Cannot mail directly to files"
> > >>If I try from a shell: perl ../../site41/web/cgi-bin/alias.cgi
> > >>it works.!

Jeff wrote:

>1. It's NEVER a good idea for a cgi-file to be owned by root.

Right 1, but it's a special case

>2. Files owned by root will NOT run through apache on any website the
>way your Raq is set up.

Right 2, but it won't be called from the Web

>3. If the cgi-file is NOT designed to be run through apache it should
>NOT be in the "web" tree.

Right 3, it's just for testing, I'll move it to /home/sites/site41
---------------------------
Zeffie wrote:

>Sendmail may have an option or a security feature that will not run a cgi
>with root power....

Right 4, but I'm trying to have Sendmail execute THAT particular script 
not every script

>noticed several files using user "mail" and group "sitex" or even admin
>in some cases....I think what I would try next is chmod mail.group of the mail
>user....

Right 5, I think this is the way to solve it...

>I have a feeling the cgi is asking to much... (Running a root program)

It depends on its permissions.


Thanks

Robert