#1 (permalink)  
Old 07-06-2009, 06:11 PM
Registered User
 
Join Date: Sep 2007
Location: Brighton
Posts: 3
blueghozt is on a distinguished road
Question nobody@ problem with php mail()

going bananas trying to find a solution to this - my new cpanel vps will not send mail from my php scripts that work on another, same spec, vps

using php mail() results in all outbound mails being marked with return path of nobody@hostname - I have checked the Tweak Settings checkbox to disallow nobody@ mails so they are now just being discarded - all outbound mails are being discarded.

The support at the vps host just said to edit php to not send from nobody@ - like that's what I have been trying to find out how to do for hours now - recompiled apache again - still no joy - has anyone had this problem before, or more importantly anyone know how to fix it? I need to be up and running in the morning with this....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-06-2009, 06:30 PM
Registered User
 
Join Date: Jul 2009
Posts: 4
jganders is on a distinguished road
I had probs with nobody. apache is typically installed under nobody.
Lets say you have a cpanel account 'myweb'. And your domain is myweb.com. When someone browses myweb.com the php scripts see the system user as nobody.

You may need to recompile apache using mod_suphp. suPHP provides an easy way to run PHP scripts with different users on the same server. It provides security, because the PHP scripts are not run with the rights of the webserver's user (nobody). In addition to that you probably won't have to use PHP's "safe mode", which applies many restrictions on php scripts.

If you recompile apache (using easyapache for instance) with the mod_suphp and people browse myweb.com, the running php scripts will then see the system user as, you guessed it, 'myweb'.

If you decide to use mod_suphp you must make sure all files have permissions 644 and all directories 755.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-06-2009, 07:06 PM
Registered User
 
Join Date: Sep 2007
Location: Brighton
Posts: 3
blueghozt is on a distinguished road
thanks for the suggestion - I did that just now but no luck - raised a ticket to see if I can get more help from the techs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-06-2009, 07:37 PM
Registered User
 
Join Date: Sep 2007
Location: Brighton
Posts: 3
blueghozt is on a distinguished road
now they tell me to check for open ports - so I am scrabbling around for this now - it seems like portsentry is the firewall I am running and might not have open ports for sending mail hence bouncebacks (though why to nobody@ and not the sending address?)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
exim , nobody@ , php mail()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
php mail problem JWG cPanel Newbies 1 12-12-2006 09:04 AM
PHP mail problem hamper cPanel Newbies 9 09-15-2006 08:20 PM
php mail problem yourwayit cPanel and WHM Discussions 1 06-12-2006 01:14 AM
Problem with PHP mail salvatore333 cPanel and WHM Discussions 6 03-11-2006 10:42 AM
php mail() problem simonlee cPanel and WHM Discussions 2 04-01-2004 07:14 PM


All times are GMT -5. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc