[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] IP address / sendmail question
- Subject: RE: [cobalt-users] IP address / sendmail question
- From: "Phil Beynon" <phil@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri Jan 2 15:15:01 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> 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)
I discovered the extra field in mail() in PHP4 where you can put
the -fwebserver@xxxxxxxxxxxx bit and it works just fine - albeit with an
x-authentication error message embedded in the email headers, that's not an
issue for where it's going though - it was just a header wrapper detection
on the receiving server, it doesn't care about the internal bits and pieces
so I'm not taking it further!
Cool - got it working and customer is happy again!
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)