Date: Mon, 12 Aug 2002 13:26:36 +0100 From: Kevin Golding <kevin@caomhin.demon.co.uk> To: francisv@dagupan.com Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Setting default e-mail sender on Apache Message-ID: <gmKMKbB8l6V9Ewif@caomhin.demon.co.uk> In-Reply-To: <10F29E27A956D511B0940050DA8D86A985C533@mailserver.dagupan.com> References: <10F29E27A956D511B0940050DA8D86A985C533@mailserver.dagupan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gmKMKbB8l6V9Ewif>