Often you will see spam or abuse of the php mail function which is very hard to trace due to the mail being sent by 'nobody'.
I know you can disable nobody from sending mail, but that prevents php mail from working altogether.
With this simple modification of the httpd.conf you can see who sent the mails:
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -r USERNAME"
You need to put that in each users virtualhost, and change USERNAME to the actual username.
This causes the return address to become [email protected] which can be used to track who sent the mail.
Hopefully cpanel can consider this for the next release, or make it an option like open_basedir
I know you can disable nobody from sending mail, but that prevents php mail from working altogether.
With this simple modification of the httpd.conf you can see who sent the mails:
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -r USERNAME"
You need to put that in each users virtualhost, and change USERNAME to the actual username.
This causes the return address to become [email protected] which can be used to track who sent the mail.
Hopefully cpanel can consider this for the next release, or make it an option like open_basedir
Last edited: