Re: Sendmail User ID
| From: | Yurais Fernández Leal | Date: | Fri, 19 Jan 2001 00:10:26 +0000 |
| Subject: | Re: Sendmail User ID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35521@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Well man
I'd consider the choice of invoking sendmail -f, it's right what I
need to do, but how can I do so in the mail function ?
Is there something I have to alter in the php.ini file ?
- ----- Original Message -----
From: "Robert Hough" <rch@solveinteractive.com>
To: "Yurais Fernandez Leal" <yurais@medired.scu.sld.cu>
Sent: Thursday, January 18, 2001 5:54 PM
Subject: Re: [PHP] Sendmail User ID
> On Thu, 18 Jan 2001, Yurais Fernandez Leal wrote:
>
> > But the mails are been sent as nobody@webserver
>
> It would help to post the actual snippet of code your using. It
> could be any number of things. Though, what I think you are
> experiencing, is soemething I dealt with a few days ago.
>
> > nobody is the user that runs the web server.
>
> You are probably talking about the Return-Path, which can be
> changed by invoking sendmail with the -f option. You will need to
> setup a trusted user for this though.
>
> > Should I run the web server as a different user so that the mails
> > get sent as this user instead of nobody ?
>
> If you setup the trusted user stuff in sendmail, I highly advise
> changing the uid from nobody to something else. You must also
> consider the serious possibility of someone taking advantage of
> this on you.
>
> Hope that helps, good luck.
>
> --
> Robert Hough (rch@solveinteractive.com)
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOmeF8UfSljpOGnYdEQIPmwCghNZ3T10g5KbYT2itN3X08sGIb10AniuR
RoAoX8G4DGlBi/S2+ty8ZvER
=GYr6
-----END PGP SIGNATURE-----