From owner-freebsd-isp Sun Aug 25 3:29:55 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 5210437B400 for ; Sun, 25 Aug 2002 03:29:51 -0700 (PDT) Received: from mail.ipfnet.net (mail.ipfnet.net [62.138.44.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E3F843E75 for ; Sun, 25 Aug 2002 03:29:50 -0700 (PDT) (envelope-from ml-freebsd-isp@phobgate.de) Received: from iushfghj-69877f (localhost [127.0.0.1]) by mail.ipfnet.net (8.11.6/8.11.6) with ESMTP id g7PATew03232; Sun, 25 Aug 2002 12:29:40 +0200 Date: Sun, 25 Aug 2002 12:29:25 +0200 From: alex Reply-To: alex To: francisv@dagupan.com, freebsd-isp@FreeBSD.ORG Subject: Re: Setting default e-mail sender on Apache Message-ID: <98217088.1030278565@[192.168.2.94]> In-Reply-To: References: X-Mailer: Mulberry/2.2.1 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 hi, i haven't tested it (i just setup the system and i'm still configuring apache), but this should/could work: php_admin_value sendmail_from "webmaster@customerdomain" php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@customerdomain" into each virtualhost, replacing customerdomain with actual domain name alex --On Sonntag, 25. August 2002 03:16 +0530 Unix Tools wrote: > It depends on the script you are using > If it is php then edit the php.ini file > If it is cgi then I think the cgi pm modules will take care of it. > > > ----- Original Message ----- > From: > To: > Sent: Monday, August 12, 2002 05:21 PM > Subject: Setting default e-mail sender on Apache > > >> 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message