I am soo greatful for this tutorial here: http://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function-to-detect-form-spam But, is there anyway of making the function itself in /usr/local/bin to make the log file run as root and not apache? This would allow me to put it into the /var/log folder. Thats the shell script for it anyways. Thanks in advance, Jeremy
No, as the script runs always under the user that executes the PHP script and runing your apache as root user instead of the apache user is not a good idea for security reasons.