Sagara Wijetunga writes:

> 1.    chown the authdaemond socket to that user

Brian said it was necessary.  I've checked a couple of our standard
installs (which don't mess with the socket) and it's owned by
root:root with rwx access for ugo.

> 6.    Use the --with-cacheowner configure option to
> control the ownership of the cache

I thought that was all that was necessary.  Mr Sam has pointed out that
while it seems to work, you'll see error messages in your logs.
 
> 1.    The SqWebMail ran under Apache suEXEC and displayed
> the login page

That's good.

> 2.    Does not read templates from the location
> SQWEBMAIL_TEMPLATEDIR environment variable points to
> and instead it reads from its default location
> /usr/local/share/sqwebmail/html

I don't know about that.  I only ever use the default location anyway.
I don't think that the lack of suexec would cause it to fail, not
unless where you pointed it at isn't readable by the sqwebmail user.

> 3.    I have entered an invalid user id and password,
> then the  SqWebMail crashes with a Server Error 500
> (Premature end of script headers) without complaining
> invalid userid/password.

I get a complaint about invalid password and the login page again.
The error you're seeing is because sqwebmail is emitting an error
message without first outputting http headers.  Sqwebmail usually
does that when it finds something seriously wrong, like a missing
file.  The fact that you get a login page at all means that you
have the ownership and permissions of the sqwebmail CGI correct.

You could try renaming sqwebmail and writing a bit of perl
in its place that outputs a content-type header and then runs
sqwebmail and passes it whatever data it got.

My guess is either the socket owner/permissions are wrong or it can't find 
or read the invalid.html template.  What happens if you give a valid
username and password?  If it logs in successfully then the socket must
be OK and it's the invalid template that's missing.  If you get a 500
error then it might be the socket or another missing template.

-- 
Paul Allen
Softflare Support


Reply via email to