Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Thorne45 on November 28, 2007, 06:58:34 AM
-
Hi
Has anyone successfully got DSpam running on 7.2?
Documentation on installing it seems a bit sparse and vague and any notes someone might have kept would be greatly appreciated.
They should install DSpam instead of Spam Assassin in version 8.
Thanks
Thorne
-
Documentation on installing it seems a bit sparse and vague and any notes someone might have kept would be greatly appreciated.
what documentation are you talking about?
They should install DSpam instead of Spam Assassin in version 8.
"they" who?
and, please, tell us why DSpam is better than SA..
in addiction add a NFR in bugtracker
Ciao
Stefano
-
Firstly have you, Stefano, installed DSPAM? If you have and your willing to lend a hand then your my new best friend. If not then geez get off my back please.
There are many HowTo's on the net to install DSPAM for different versions of linux. They're all very different and most are for much earlier versions of DSPAM. The documents that come with DSPAM are very disjointed and bits seem to be missing, which probaly are simple steps I should know but before playing with DSPAM I have never had a need to play with MYSQL. I think my problem is that I don't think I have linked to to MYSQL properly.
I'm trying to get it running with a MYSQL database for cross user databases and the web interface for the spam holding bin.
The difficulty in installation and the documentation is DSPAM's downfall.
As for "They". It is the same people who said "Let put Spam Assassin in SME". I'm assuming it's the board or the developers working on version 8 who select what packages will be installed by default.
As for why DSPAM is better than Spam Assassin here's an excert from the DSPAM website:
Q. How is DSPAM different from SpamAssassin?
A. While both share the common goal of eradicating spam, the two solutions bear very different philosophies.
Cocktail Approach vs. Centralized Adaptive Learning
SpamAssassin is designed with the arsenal (a.k.a cocktail or toolbox) philosophy and aggregates the results from a myriad of different spam detection tests with the hope that at least some of the components should detect an inbound spam. These different tests range from heuristic "rules" which identify specific characteristics in spam to blacklists, and finally to limited Bayesian learning. DSPAM's philosophy is based on the belief that machine-learning (basic artificial intelligence) can, in and of itself, solve the spam problem without the need for human-maintained rules, inaccurate blacklists, or any hodge-podge of solutions for that matter. DSPAM's one central spam detection function incorporates advanced, concept-based statistical analysis. This has resulted in levels of accuracy up to ten times that of a human, with very few false positives. DSPAM breaks down each email into its colloquial components, analyzes the historical data for each component, and determines the most interesting characteristics to judge an email by. While DSPAM supports many pre-filters, post-filters, and additional layers of analysis, its central function lies solely in adaptive learning and language analysis. This alone has yielded levels of accuracy peaking at 99.991%.
We feel that the justification for our philosophy is in the credits. While the SpamAssassin project requires over 100+ individuals to maintain, DSPAM manages to delivery significantly higher levels of accuracy with only one primary maintainer and a small pool of patch contributors.
Several SME users have already switch to DSPAM with great results
As for adding an NFR, the NFR has already been added by someone else before me. I'm not Robertson Crusoe here.
Thorne
-
This has resulted in levels of accuracy up to ten times that of a human, with very few false positives.
I thought I wanted that email but my server is 10 times more accurate than I am at determining if I needed it... :?
Sometimes I learn heaps and sometimes I just have to :lol:
Anywho - sorry to interrupt - I have no DSPAM experience and use SA, happily. So I'll chuckle away quietly here.
-
Ok not getting much assistance here but I think I'm finally getting somewhere
This is my list of commands to install the initial DSPAM. The database, username and password is all dspam which makes the list slightly confusing but I'm playing on a test server and will change them later
cd /var/lib/
mkdir dspam
cd dspam
wget http://dspam.nuclearelephant.com/sources/dspam-3.8.0.tar.gz
tar -xzf dspam-3.8.0.tar.gz
cd dspam-3.8.0
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons gcc
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons autoconf
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons automake
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons mysql-devel
signal-event post-upgrade
signal-event reboot
cd /var/lib/dspam/dspam-3.8.0
./configure --sysconfdir=/etc --with-dspam-home=/var/lib/dspam --with-logdir=/var/log/dspam --with-storage-driver=mysql_drv --enable-daemon --enable-virtual-users --enable-preferences-extension --enable-long-usernames --with-dspam-owner=root --with-dspam-group=root --enable-clamav --with-mysql-includes=/usr/include/mysql --with-mysql-libraries=/usr/lib/mysql
make && make install
groupadd dspam
mysql -u root
CREATE database dspam;
GRANT ALL PRIVILEGES ON dspam.* TO dspam@'localhost' IDENTIFIED BY 'dspam';
quit
mysql -u dspam dspam -p < /var/lib/dspam/dspam-3.8.0/src/tools.mysql_drv/mysql_objects-space.sql
mysql -u dspam dspam -p < /var/lib/dspam/dspam-3.8.0/src/tools.mysql_drv/virtual_users.sql
cd ..
echo /var/lib/mysql/mysql.sock >> mysql.data
echo >> mysql.data
echo dspam >> mysql.data
echo dspam >> mysql.data
echo dspam >> mysql.data
The second bit gets the WebUI running (sort of)
You need to change the templates that create /etc/httpd/conf/httpd.conf
We need a line that says
RewriteRule ^/dspam(/.*|$) https://%{HTTP_HOST}/dspam$1 [L,R]
I stuck it under the rewrite rule for horde on line 500
We need a line that says
Alias /dspam /home/httpd/html/dspam
I stuck it under the alias for horde on line 558
The following section goes above the Horde specific configuration files
# DSPAM directory
<Directory /home/httpd/html/dspam>
AuthName "DSPAM"
AuthType Basic
AuthExternal pwauth
<Limit GET>
order deny,allow
require valid-user
</Limit>
</Directory>
<Directory /home/httpd/html/dspam/cgi-bin>
Options ExecCGI
AuthName "DSPAM"
AuthType Basic
AuthExternal pwauth
<Limit GET>
order deny,allow
require valid-user
</Limit>
</Directory>
You need to figure out what templates need editing yourself. I'm just playing at the moment so I edited the httpd.conf file directly. I'll change templates later
Create a directory at /home/httpd/html/dspam/
copy cgi-bin and htdocs from webui into this directory
edit configure.pl in the cgi-bin and alter the following line
$CONFIG{'WEB_ROOT'} = "/dspam/htdocs";
it's around line 36
This as far as I have gotten so far. DSpam can be access from http://your.address/dspam/cgi-bin/dspam.cgi
I'm currently trying to figure out how to link dspam into qmail via the .qmail-default file.
If anyone has suggestion or alterations please let me know. I'd like to turn this into a HOWTO once it's finished.
Thorne
-
Hi Thorne,
Found a NFR here: http://bugs.contribs.org/show_bug.cgi?id=1746
See comment 7 for a link to a page for qmail integration.