Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-04-02
3
927 Views
Last Modified: 2012-06-27
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
Comment
Question by:FourMat
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Yumitsu earned 500 total points
ID: 24058016
You must use phpSuExec for this and restrict access to sendmail binary for "nobody".
0
 

Author Comment

by:FourMat
ID: 24077588
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
 
LVL 2

Expert Comment

by:Yumitsu
ID: 24077756
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question