On Tue, Apr 20, 2010 at 12:21:32PM +0200, salson.uma...@monecam.com wrote:
> My data is : opt/dspam/var/dspam
> 
> my web-ui :
> 
> /data/www/dspam 43$ ll
> 
> total 196
> 
> -rw-r--r-- 1 daemon daemon  4122 sep 10  2009 configure.pl
> 
> what file is a link between the web-ui and data ?

Open up configure.pl in your favourite text editor and make sure all
those settings are correct. It's included by the .cgi files and
provides the configuration information for the whole web UI.

> what level I need to change the rights ?

The web UI has two ways of interacting with the rest of dspam to
collect or change information: for some things, it will run the
dspam_admin command (in order to read/change preferences).
Otherwise, it directly reads and writes some of the files in the
dspam data directory (probably /opt/dspam/var/dspam for you).

If you want the web UI to be properly functional, you'll need to
make sure the user the web server is running the web UI as has
read/write access to the "data" directory and all subdirectories and
files. You'll also need to make sure that dspam_admin and dspam
itself (for retraining) work properly when called by the web user.

That obviously means they'll need permission to execute those
binaries, but also that they can access the backend storage
(database server or the local db files). You'll probably also want
to list the appropriate username as a trusted user in dspam.conf.

I think the generally recommended way is to use suExec to run the
dspam UI virtual host under a specific user account (i.e. the same
one you use for processing email with dspam), since that will have
all the needed permissions.

------------------------------------------------------------------------------
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to