Date: Tue, 13 Aug 2002 07:40:12 +1200 From: Andrew Thompson <andy@fud.org.nz> To: francisv@dagupan.com, freebsd-isp@FreeBSD.ORG Subject: Re: Setting default e-mail sender on Apache Message-ID: <3D580F1C.70908@fud.org.nz> References: <10F29E27A956D511B0940050DA8D86A985C535@mailserver.dagupan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Going by what Kevin said (and the webpage) you need: php_value sendmail_from "webmaster@<client>" rather than what you have put: php_admin_value sendmail_from "webmaster@<client>" --Andy francisv@dagupan.com wrote: >Hi Kevin, > >Thanks for your response. I have the following values inside the ><VirtualHost> container: > > php_admin_value doc_root "/usr/local/vhosts/<clientname>/htdocs" > php_admin_value sendmail_from "webmaster@<client>" > >I also double-checked httpd.conf to make sure that the directories have >"AllowOverride Options": > ><Directory "/usr/local/vhosts/*/htdocs"> > AllowOverride Options > Options Indexes MultiViews IncludesNOEXEC > Order allow,deny > Allow from all ></Directory> > >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 > > 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?3D580F1C.70908>