[Pkg-dspam-misc] Bug#394443: dspam doesn't work when run as non-privileged users

Martin Steigerwald Martin at Lichtvoll.de
Sat Oct 21 10:04:43 UTC 2006


Package: dspam
Version: 3.6.8-4
Severity: important


Hello,

I am trying to get dspam to work with KMail according to this tutorial:
http://www.kde.nl/doc/kmail-dspam/

I let http://babelfish.altavista.com/babelfish/ translate it to english
for me.

Instead of compiling my own dspam I decided to use the latest debian
package.

First I fixed lots of permissions problems: Although dspam executable
is set gid like this

deepdance:~> ls -l /usr/bin/dspam
-rwxr-sr-x 1 dspam dspam 92196 2006-10-19 22:54 /usr/bin/dspam

It can't read /etc/dspam/dspam.config unless I do chmod a+r on it.

brk(0)                                  = 0x805f000
brk(0x8080000)                          = 0x8080000
umask(06)                               = 022
open("/etc/dspam/dspam.conf", O_RDONLY) = -1 EACCES (Permission denied)
time([1161418817])                      = 1161418817

It also cannot write to /var/spool/dspam unless I do chmod a+rwx on it.

I tried using the hash driver and the sqlite driver but I couldn't get
dspam to train a single message.

I did dspam_stats -H martin and fixed permissions again. Then I also
created missing directories

mkdir -p /var/spool/dspam/opt-in/local/martin.dspam
chmod -R a+rwx /var/spool/dspam/opt-in/
mkdir -p /var/spool/dspam/opt-out/local/martin.dspam
chmod -R a+rwx /var/spool/dspam/opt-out/

Then I even copied a prefs file so fix the last error in strace:
cp -a /etc/dspam/default.prefs /var/spool/dspam/data/local/martin/martin.prefs

I tried to train dspam, but it didnt work:
-----------------------------------------------------------------------
deepdance:/var/spool/dspam> dspam_train martin
/home/martin/Mail/.trash.directory/Spam/cur
/home/martin/Mail/Lichtvoll/cur
Taking Snapshot...
martin            TP:     0 TN:     0 FP:     0 FN:     0 SC:     0 NC:
0
Training /home/martin/Mail/Lichtvoll/cur /
/home/martin/Mail/.trash.directory/Spam/cur corpora...
[test: nonspam] 1144529430.6436.aVaQZ:2,S        result:
===== WOAH THERE =====
I was unable to parse the result. Test Broken.
-----------------------------------------------------------------------

I tried to use dspam as advised in the KMail tutorial referenced above:

martin at deepdance:~/Mail/.trash.directory/Spam/cur -> strace
/usr/bin/dspam --stdout --deliver=innocent,spam --mode=teft --class=spam
--source=error < 1161418412.32329.UkBkH:2,S

I got a long strace output that indicated no error (I will post it in an
extra mail). I also tried without strace.

Still I get:

deepdance:/var/spool/dspam> dspam_stats -H martin
martin:
                TP True Positives:              0
                TN True Negatives:              0
                FP False Positives:             0
                FN False Negatives:             0
                SC Spam Corpusfed:              0
                NC Nonspam Corpusfed:           0
                TL Training Left:            2500
                SHR Spam Hit Rate         100.00%
                HSR Ham Strike Rate:      100.00%
                OCA Overall Accuracy:     100.00%

Then I just gave up for now. As Mark Whitis I did not manage to find out
on how to make use of that package:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366478

One may think that it doesn't make sense to try to use dspam via KMail,
but there even is a tutorial indicating that it does work and before I deploy 
it on a server I want to test it locally (replacing my KMail bogofilter setup i
which is at its end of scalability). I will now compile my own dspam 
as instructed in the tutorial and look whether it works better.

Regards,
Martin

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-ck1-tp23-sws-2.2.8
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages dspam depends on:
ii  adduser                     3.97         Add and remove users and groups
ii  libc6                       2.3.6.ds1-4  GNU C Library: Shared libraries
ii  libdspam7                   3.6.8-4      DSPAM is a scalable and statistica
ii  libldap2                    2.1.30-13+b1 OpenLDAP libraries
ii  procmail                    3.22-16      Versatile e-mail processor

Versions of packages dspam recommends:
pn  clamav-daemon                 <none>     (no description available)
ii  dspam-doc                     3.6.8-2.1  Documentation for dspam

-- no debconf information




More information about the Pkg-dspam-misc mailing list