changing nobody when emailing through php
I am using php to send emails to myself when my users take take certain actions. Those emails used to come to me via nobody@hostname.
After reading cpanel documentation about making my server more secure I disabled emails from user nobody. Is there a way to change php's way of determining the user ID?
In the php code to send the email I specify:
[QUOTE]$headers .= "From: " . "\r\n";
but the exim_mainlog says [QUOTE]Mail delivery failed: returning message to sender" for nobody@...
Thanks, Evan
but the exim_mainlog says [QUOTE]Mail delivery failed: returning message to sender" for nobody@...
Thanks, Evan
-
Hello :) Do you have root access to this system? If so, you can update your PHP handler to suPHP so that email is sent as the account username rather than the "nobody" username. The other alternative is to modify your script to use SMTP authentication to send out email. Thank you. 0 -
I do have root access but I can't figure out the "suPHP" part. Where do I change this? I looked in the "php configuration editor" and I didn't see anything of interest there. [quote="cPanelMichael, post: 1490061">Hello :) Do you have root access to this system? If so, you can update your PHP handler to suPHP so that email is sent as the account username rather than the "nobody" username. The other alternative is to modify your script to use SMTP authentication to send out email. Thank you. 0 -
You can change your PHP handler via: "WHM Home " Service Configuration " Configure PHP and suEXEC" Here are the considerations you should take into account before switching to suPHP: cPanel - suPHP Considerations Thank you. 0
Please sign in to leave a comment.
Comments
3 comments