From owner-freebsd-isp Mon Aug 12 5:52:45 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 5EAAA37B400 for ; Mon, 12 Aug 2002 05:52:42 -0700 (PDT) Received: from backup.dagupan.com (mailserver.dagupan.com [202.91.161.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 943AB43E6A for ; Mon, 12 Aug 2002 05:52:41 -0700 (PDT) (envelope-from francisv@dagupan.com) Received: by mailserver.dagupan.com with Internet Mail Service (5.5.2653.19) id ; Mon, 12 Aug 2002 20:55:36 +0800 Message-ID: <10F29E27A956D511B0940050DA8D86A985C535@mailserver.dagupan.com> From: francisv@dagupan.com To: freebsd-isp@FreeBSD.ORG Subject: RE: Setting default e-mail sender on Apache Date: Mon, 12 Aug 2002 20:55:31 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain 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 Kevin, Thanks for your response. I have the following values inside the container: php_admin_value doc_root "/usr/local/vhosts//htdocs" php_admin_value sendmail_from "webmaster@" I also double-checked httpd.conf to make sure that the directories have "AllowOverride Options": AllowOverride Options Options Indexes MultiViews IncludesNOEXEC Order allow,deny Allow from all php.ini has "safe_mode = On" but testing the web application still sends e-mail coming from the ID runnig the web process. BTW, my MTA is Postfix if this helps in troubleshooting the problem. Thanks also for the link :) Sincerely yours, Francis A. Vidal --- 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 -----Original Message----- From: Kevin Golding [mailto:kevin@caomhin.demon.co.uk] Sent: Monday, August 12, 2002 8:27 PM To: francisv@dagupan.com Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Setting default e-mail sender on Apache 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