Web Hosting Talk







View Full Version : change user nobody@


Copy Left
09-19-2004, 02:56 AM
hello, when use script to send mail, mails arrives at name from nobody@myserver.com.

I have suExec enabled.

all's emails sending with script (for example), they are received from:
---------
Return-path: <nobody@host.myserver.com>
Envelope-to: name@mail.com
Delivery-date: Sat, 18 Sep 2004 23:16:05 -0600
Received: from nobody by host.myserver.com with local (Exim 4.41)
id 1C8u3Q-0007pa-RV
for name@mail.com; Sat, 18 Sep 2004 23:16:04 -0600
To: name@mail.com()
Subject: test
From: name@mail.com (san)
Reply-To: name@mail.com (san)
X-Mailer: http://www.phpclasses.org/mimemessage $Revision: 1.37 $ (sendmail $Revision: 1.10 $)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b7374e3c6b5fdfe366a07416ccd40ce1"
Message-ID: <20040918231604.6513.name@mail.com>
Sender: Nobody <nobody@host.myserver.com>
Date: Sat, 18 Sep 2004 23:16:04 -0600
---------------

somebody knows like doing so that emails sent by scripts arrives at name of the user and not from nobody?
For example: Return-path: <mailuseraccount@domain.com> or Sender: <mailuseraccount@domain.com>

thanks for your help!

Matt -Seeksadmin
09-19-2004, 03:20 AM
Hey,

Suexec only locks down CGI scripts... if you want to lock down PHP scripts to their specific user then use PHPsuexec. Note that this breaks any scripts that are chmodded to 0777 and they will need to be chmod 0755.

Copy Left
09-19-2004, 03:27 AM
hello, thanks.
like knowing if to PHPsuexec this running or install?

Matt -Seeksadmin
09-19-2004, 03:30 AM
=| sorry i didn't quite get that... PHPsuexec is a mod of apache, if you would like to call it that. The easiest way to activate it is if you have cpanel.

Login to whm
goto Update apache
click enable phpsuexec (and prior compile options)
Click start build

Copy Left
09-19-2004, 03:37 AM
thanks again.

I am not clear to understand the subject of the permissions chmod.

I must change to the permissions of all the archives php to 755?

I have had ERROR 500 by not knowing how to config this.

thank for you help.

Matt -Seeksadmin
09-19-2004, 03:42 AM
Ok, the problem is, any of your scripts with permissions of chmod 777 will not work with phpsuexec enabled. You will need to chmod them to 755 to get them to work.

Copy Left
09-19-2004, 03:45 AM
ok, thanks Matt!