• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 965
  • Last Modified:

How does the cPanel setting 'Prevent the user "nobody" from sending out mail to remote addresses' affect my php scripts?

Hello,

I have a few questions about a cPanel setting.

I have been having issues controlling the emails that the user nobody can send.  I know that PHP and CGI scripts use nobody to send the mail.  I noticed in my cPanel Tweak settings that there is an option that says, "Prevent the user "nobody" from sending out mail to remote addresses".    

1) How will this affect the php scripts that want to send email.  
2) Will it block them totally?

3) I supposedly have Apache suExec enabled but scripts are still sending mail as nobody, How is suExec supposed to work this way?  What might I be missing?
0
FourMat
Asked:
FourMat
  • 2
1 Solution
 
YumitsuCommented:
You must use phpSuExec for this and restrict access to sendmail binary for "nobody".
0
 
FourMatAuthor Commented:
Will this kill the ability of the scripts to send mail?  My ultimate goal is to be able to identify which account/script is sending the automated mail.  Will the script automatically have the name "account@yourdomain.com" rather than "nobody@yourdomain.com"?
0
 
YumitsuCommented:
PHP uses sendmail to send messages. There is no possibility to predefine sender e-mail address, you just can disallow e-mail sending from system 'nobody' user.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now