From owner-freebsd-isp Tue Aug 13 21: 5:50 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52BEC37B400 for ; Tue, 13 Aug 2002 21:05:48 -0700 (PDT) Received: from backup.dagupan.com (mailserver.dagupan.com [202.91.161.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8154243E77 for ; Tue, 13 Aug 2002 21:05:47 -0700 (PDT) (envelope-from francisv@dagupan.com) Received: by mailserver.dagupan.com with Internet Mail Service (5.5.2653.19) id ; Wed, 14 Aug 2002 12:08:55 +0800 Message-ID: <10F29E27A956D511B0940050DA8D86A985C547@mailserver.dagupan.com> From: francisv@dagupan.com To: ksemat@wawa.eahd.or.ug Cc: freebsd-isp@freebsd.org Subject: RE: Setting default e-mail sender on Apache Date: Wed, 14 Aug 2002 12:08:54 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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