• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 954
  • 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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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