We have a problem with users using misconfigured PHP scripts to don't pass the return address correctly sending mail out from the servers hostname. I have asked cPanel developers if they have a way around this, they said no. I disagree, I beleive it should be possible by making additions to the cPanel vhost template, however the setting I want to add isn't working.
I started by adding the following line to httpd.conf and the virtual host include file:
php_admin_value open_basedir "/home/walttest:/usr/lib/php:/usr/local/lib/php:/tmp"
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f firstname.lastname@example.org"
However it doesn't get applied as seen here -->http://testing.amihost.com/info.php
The only way I can get the setting to actually apply is by placing a php.ini in the user's public_html with the setting, making my goal of the template edit not possible. Is this becuase of mod_suPHP? Does anyone know how I can set the sendmail_path variable via httpd.conf or a vhost include file?