Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2002 12:08:54 +0800
From:      francisv@dagupan.com
To:        ksemat@wawa.eahd.or.ug
Cc:        freebsd-isp@freebsd.org
Subject:   RE: Setting default e-mail sender on Apache
Message-ID:  <10F29E27A956D511B0940050DA8D86A985C547@mailserver.dagupan.com>

next in thread | raw e-mail | index | archive | help
This is a good point. All the while I was looking at /var/log/maillog and
looking at all those mail coming from www@hosting instead of client@hosting.

The Apache binary has already suEXEC enabled and CGI scripts are being
executed by the client UID instead of the UID running the httpd process.

I'll try to consult with the client. Thanks!

-----Original Message-----
From: Noah K Sematimba
To: francisv@dagupan.com
Cc: freebsd-isp@FreeBSD.ORG
Sent: 8/12/02 10:04 PM
Subject: Re: Setting default e-mail sender on Apache


You mean the envelope sender or the X-sender?

Because setting the sender in the php script itself changes the envelope
sender.

One memory expensive solution of course would be to run php as a cgi and
use suexec to make the scripts run as the owner of the virtualhost.


Noah.

On Mon, 12 Aug 2002 francisv@dagupan.com wrote:

> Hi,
>
> We have a virtual hosting machine running FreeBSD 4.6-STABLE with
Apache and
> PHP as a module. Our users use PHP's mail() function to send e-mail
from
> within the web application. However, the default sender is the user
running
> the web process and not the virtual host owner. How do I configure
Apache
> (or PHP) to use mail() as the virtual host owner and not the user
running
> the web process?
>
> Thanks!
>
> ---
>  francis a. vidal [bitstop network services] | http://www.bitstop.ph
>  streaming media + web hosting               | http://www.keystone.ph
>  v(02)330-2871,(02)330-2872; f(02)330-2873   | http://www.kuro.ph
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10F29E27A956D511B0940050DA8D86A985C547>