Hi,

The webui executes dspam, dspam_admin etc on the commandline, typically
as the user running the httpd. This means that you need to setup you
environment in a way that allows to execute these commands, typically
done by one of:

a) adding sudo in the mix
b) running the webui under a different user within the httpd, using f.i.
suexec in apache
c) allowing the regular httpd user to execute all dspam command, f.i.
using 'Trust' directive in dspam.conf

None of these setups is really easy, and they all have security
concerns, which is why the webui is cumbersome to set up.

The easiest way I found is running a separate httpd process (using
lighttpd in my case) that runs as dspam/dspam and only serves the webui,
and no other content.

The "permission denied" error you are seeing is most likely cause bythe
fact that the httpd user does not have enough rights to run the
'dspam_admin' binary, or something like that...


Tom

On 04/14/2013 02:24 AM, Dean Malandris wrote:
> Hi - I've installed dspam- 3.10.2-r1 and dspam-web-3.10.1 on a Gentoo 
> system with kernel 3.7.9.
> 
> I'm using postfix+dovecot+mysql to run a mail server with all virtual 
> users, virtual domains,  and maildirs. Everything seems to work fine, 
> with the exception of getting the web interface for dspam to run.
> 
> I've followed the instructions at 
> http://en.gentoo-wiki.com/wiki/Dspam_relay#Installing_the_Web_Interface 
> and I can browse to the location and see the interface OK, however when 
> I try to save the preferences, the browser returns the message:  "Unable 
> to write preferences: Permission denied".
> 
> I'm fairly certain that dspam itself is working because even though when 
> I browse to the "quarantine" tab and see the expected web page (but with 
> no row entries in it), mail is still making it through to my inbox and 
> if I examine the headers, I see the expected tags:
> 
> X-DSPAM-Result: Innocent
> X-DSPAM-Processed: Thu Apr 11 16:48:02 2013
> X-DSPAM-Confidence: 0.9899
> X-DSPAM-Improbability: 1 in 9809 chance of being spam
> X-DSPAM-Probability: 0.0000
> X-DSPAM-Signature: 1002,51665ca220471625310125
> 
> 
> Looking inside the MySQL database tables, I see that there are several 
> hundred rows in table "dspam_signature_data", table "dspam_stats" tells me 
> that "innocent_learned" = 1580, and table "dspam_token_data" has over half a 
> million rows of data in it, so
> I'm making the assumption that everything is working, it's just that I can't 
> peek inside dspam with the web interface.
> 
> In the MySQL users table, I have a user "filter" with the same password 
> and permissions as the dspam user. I get no error messages in any of the 
> logs.
> 
> Any suggestions? I know it's some sort of permissions problem involving 
> dspam-web, MySQL, and possibly apache, but not sure how to proceed.
> 
> 
> On 11/04/2013 4:47 PM, Paul Cockings wrote:
>> Dspam web UI is part of same source, although package maintainers may choose 
>> to split the webui into a seperate install.
>>
>> Ask your question, including which linux flavor and how you installed dspam, 
>> ie from source or via binary packages etc. and which MTA and http server you 
>> are using
>>
>> dspsm --version
>>
>> Will also show which compile time options were used
>>
>>
>>
>>
>> Dean Malandris <d...@plexustechnologies.net> wrote:
>>
>>> Hi all - just wondering if I can get help with dspam-web, or is the
>>> content of this mailing list strictly limited to Dspam itself?
> 
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to