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
922 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP search array for either partial or complete values 3 24
PHP populating an array. 4 22
PHP AJAX Wordpress 9 19
Php recording post 4 33
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now