Contributed by jose on from the inerior-design dept.
"Hi, I am setting up a website that is using PHP. The web site trys to send out e-mails by using the following PHP command:While this isn't a very secure way at all to handle email submissions from HTTP POST operations, it does raise the question of what methods people have found to run PHP system with the chrooted Apache in 3.3. Anyone care to share their setup scripts and methods?$cmd = "/bin/echo "" . $msg . "" | /usr/sbin/sendmail -t -i"; exec($cmd);This works if I ensure Apache is not running in the default jailed environment. I would like to have some mechanism for sending an email message from the jailed environment.
Has any one else done this? Any suggestions would be greatly appreciated."
(Comments are closed)