From owner-freebsd-isp Mon Aug 12 5:26:59 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 9E71E37B400 for ; Mon, 12 Aug 2002 05:26:57 -0700 (PDT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C96643E88 for ; Mon, 12 Aug 2002 05:26:57 -0700 (PDT) (envelope-from kevin@caomhin.demon.co.uk) Received: from caomhin.demon.co.uk ([62.49.21.186]) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 17eEHg-000MaM-0X; Mon, 12 Aug 2002 13:26:56 +0100 Message-ID: Date: Mon, 12 Aug 2002 13:26:36 +0100 To: francisv@dagupan.com Cc: freebsd-isp@FreeBSD.ORG From: Kevin Golding Subject: Re: Setting default e-mail sender on Apache References: <10F29E27A956D511B0940050DA8D86A985C533@mailserver.dagupan.com> In-Reply-To: <10F29E27A956D511B0940050DA8D86A985C533@mailserver.dagupan.com> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U 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 Someone, quite probably , once wrote: >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? In each virtual hosts' config section include the line: php_value sendmail_from user@their.domain Just make sure they have: AllowOverride Options So you can set PHP options on a virtual host basis. If you do that you'll probably want to set some things so they can't be changed like: php_admin_flag safe_mode on Read http://www.php.net/manual/en/configuration.php for more info. Kevin -- kevin@caomhin.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message