Try a two-step process.
Have your CGI drop files into a known directory, then have a separate process (one running with the permissions of the logged-in user, perhaps) periodically scan the directory and process any files that need to be mailed.
| [reply] |
Hi Dws,
I'm slapping my head here and going DOH! So easy, so simple, so stupid of me not to think of that! :) Thanks, perfect solution!!
Regards,
Kakaze
| [reply] |
FYI, the closest thing to SUID on NT is LogonUser followed by CreateProcessAsUser. I'm not sure which modules implement these and how well but suspect that http://www.roth.net/ has some (probably Win32::AdminMisc) even though I don't particularly like the way they handle their modules.
-
tye
(but my friends call me "Tye")
| [reply] |
There is a couple of things you can do. One is go into Internet Service manager and go to the properties of SMTP then go to security and take out the check in don't allow annonymous access. This of-course is very insecure. the second is set up another machine as a SMTP gateway. Then use Net::STMP to connect and send out the email through it. On the security side of this you will need to do two allow smtp traffic from your web server (via IP address). This can be done in ISM also. Then you can connect and send it on its marry way.
--BigJoe
Learn patience, you must. Young PerlMonk, craves Not these things. Use the source Luke. | [reply] |
Hi BigJoe,
Yep, they're both the ideas I had and didn't go for, the first for the security aspect rules that out and the second is unfortunately not an option :( I'm using the Net:SMTP approach but since we only have the one machine, that has to be the SMTP gateway and all the inherent security risks involved prohibit using that for anonymous access. Ho Hum, back to scratching my head.
Thanks for the help!
Kakaze
| [reply] |