[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] IP address / sendmail question



Here is what I do,
Since adding anything to the httpd.conf or other related files can be disasterous on the Cobalt products.
I add a line to an .htaccess file in the root of a website.
(IE /home/sites/www.somesite.tld/.htaccess NOT /home/sites/www.somesite.tld/web/.htaccess) php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebserver@xxxxxxxxxxxx"
and chown root.root and chmod ug=rw,o=r
This will allow the webserver to read it but keep the user for mucking it up.
The reason I place it here and not in the web root is due to the fact that users tend to like to have their own .htaccess files they can edit.

Hope this helps.


PS my other 2 favorites to add are
php_admin_value safe_mode 1
php_admin_value open_basedir "/home/sites/www.somesite.tld/web/"

This keeps people from using php to snoop into other directories.

(Make sure you add
safe_mode_include_dir = /tmp/php:/usr/lib/php
to your php.ini if you use the latter)


At 02:56 PM 12/28/2003, you wrote:
Hi all,
This is on a raq4i and totally beyond me!

If I have a virtual site which has a different ip address from the main
server is there a way of configuring sendmail to know that when I send an
email, via a PHP script, that it should use the virtual sites ip address in
the headers instead of the main server ip address?
I can't see any way of feeding this as a variable to sendmail

i.e. currently if I look at the headers I get;

Received: from webserver.diygear.com (webserver.diygear.com
[212.105.190.102])

where in fact I want;

Received: from www.uksub.biz (www.uksub.biz [212.105.190.130])

which will then not screw up a user authentication system on another server
that it sends dedicated mail to!

Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users