|
|||
|
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....
|
|
|||
|
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. |
|
|||
|
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?)
|
![]() |
| Tags |
| exim , nobody@ , php mail() |
| Thread Tools | |
| Display Modes | |
|
|
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 |