From: "Marcin Owsiany
> Hello!
>
> I would like sqwebmail not to run as root. Because of the
> current setup, this shouldn't cause problems. I would like to
> know if there are any hidden obstacles which I might hit,
> though.

I don't understand wht it runs as root either. A couple of notes you need to
read the  /usr/local/src/qmail/sqwebmail-2.0.0/INSTALL  It has a lot of
notes that give a better detailed description that ./configure --help does.

I use this script, it includes aspell since ispell won't work for me on
openbsd or a friend on debian, it includes SSL generated html, it uses only
cdb authentication but most importantly the last few commands along with the
make it not run as root.  It comes with no guarantee at all whatsover!  Note
that I used gmake instead of make since this is openbsd.  Your paths may
differ in some regard.

I also had to advise my users about IE5.5 's uses off SSL3   I suggest they
uncheck that box in options.  I did try and force BrowserMatch in httpd.conf
to make MSIE behave like I did when I ran this on mandrake-linux but
openbsd's implementation didn't like it at all.  Forcing SSL2 on IE5.5 has
made the erratic behaviour drop dramatically. This helped a lot on mandrake,
but wont help on openbsd.

BrowserMatch "MSIE" nokeepalive downgrade-1.0 force-response-1.0

On to the script.  You mentioned mysql authentication so this wont work for
you as-is.

#!/bin/sh
#run from within the /usr/local/src/qmail/sqwebmail-2.0.0   source dir
./configure --enable-https --with-ispell=/usr/local/bin/aspell --enable-webp
ass=vpopmail --without-authpwd --without-authshadow --without-authpam --with
out-authuserdb --without-authldap --without-authdaemon --with-authvchkpw --e
nable-imagedir=/var/www/webs/mail.updegrove.net/htdocs/images --enable-mimet
ypes=/var/www/conf/mime.types --with-cachedir=/var/cache/sqwebmail --with-ca
cheowner=vpopmail --with-db=db --with-userdb=/etc/userdb --with-formdata --w
ithout-authlib-man --enable-utf7-folder-encoding --with-gmakedatprog=/usr/lo
cal/libexec/sqwebmail/gmakedatprog --with-authdaemonvar=/usr/local/share/sqw
ebmail/authdaemon --sysconfdir=/usr/local/share/sqwebmail; gmake
configure-check; gmake; gmake check; gmake install-strip; gmake
install-configure; chown vpopmail.vchkpw /var/www/cgi-bin/sqwebmail; chmod
6555 /var/www/cgi-bin/sqwebmail; chown vpopmail.vchkpw /var/cache/sqwebmail;
chmod +t /var/cache/sqwebmail

Hope this helps.

Rick Up

Reply via email to