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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

757 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

22 Experts available now in Live!

Get 1:1 Help Now