I'm trying to get dspam work on a Ubuntu 64-bit-machine.
First I tried to use the dspam.deb file coming with ubuntu. It's the
previous version (3.6.8) and it didn't work. So I built the 3.8.1-cvs
packages by source (using a debian patch from kirya.net). But I still
have the same problems.

Dspam is running and listening on port 10025 with LMTP. Just for testing
I try to manually send a mail and want it to get to my postfix-server
listening on port 25. The mail never reaches port 25 (postfix doesn't
produce ANY logging by using verbose logging) and more problematic I
don't get any logging from dspam.

My dspam.conf looks like that:
   Home /var/spool/dspam
   StorageDriver /usr/lib/dspam/libhash_drv.so
   DeliveryHost        127.0.0.1
   DeliveryPort        25
   DeliveryIdent       localhost
   DeliveryProto       SMTP
   Trust root
   Trust dspam
   Trust mail
   Trust daemon
   Debug *
   DebugOpt process spam fp
   TrainingMode teft
   TestConditionalTraining on
   Algorithm graham burton
   Tokenizer chain
   WebStats on
   HashRecMax              98317

   SystemLog on
   UserLog   on
   ServerPort              10025
   ServerMode standard
... Hope I didn't forget any important variable.

A communication on port 10025 like that

   >telnet localhost 10025
   Trying 127.0.0.1...
   30231: [03/01/2008 09:07:26] connection id 4 from 127.0.0.1.
   Connected to localhost.
   Escape character is '^]'.
   220 DSPAM LMTP CVS Ready
   LHLO localhost
   30231: [03/01/2008 09:07:31] checking trusted user list for root(0)
   250-localhost.localdomain
   250-PIPELINING
   250-ENHANCEDSTATUSCODES
   250-8BITMIME
   250 SIZE
   MAIL FROM:<[EMAIL PROTECTED]>
   250 2.1.0 OK
   RCPT TO:<[EMAIL PROTECTED]>
   250 2.1.5 OK
   DATA
   30231: [03/01/2008 09:08:36] No QuarantineAgent option found. Using
standard quarantine.
   354 Enter mail, end with "." on a line by itself
   Test-Mail
   .
   30231: [03/01/2008 09:08:47] using database handle id 4
   30231: [03/01/2008 09:08:47] handle locked
   30231: [03/01/2008 09:08:47] DSPAM Instance Startup
   30231: [03/01/2008 09:08:47] input args: dspam
   30231: [03/01/2008 09:08:47] pass-thru args:
   30231: [03/01/2008 09:08:47] processing user [EMAIL PROTECTED]
   30231: [03/01/2008 09:08:47] uid = 0, euid = 0, gid = 0, egid = 114
   30231: [03/01/2008 09:08:47] loading preferences for user
[EMAIL PROTECTED]
   30231: [03/01/2008 09:08:47] Loading preference 'trainingMode' = 'TEFT'
   30231: [03/01/2008 09:08:47] Loading preference 'spamAction' =
'quarantine'
   30231: [03/01/2008 09:08:47] Loading preference 'spamSubject' = '[SPAM]'
   30231: [03/01/2008 09:08:47] Loading preference 'enableBNR' = 'on'
   30231: [03/01/2008 09:08:47] Loading preference 'enableWhitelist' = 'on'
   30231: [03/01/2008 09:08:47] Loading preference
'statisticalSedation' = '5'
   30231: [03/01/2008 09:08:47] Loading preference 'signatureLocation'
= 'message'
   30231: [03/01/2008 09:08:47] Loading preference 'whitelistThreshold'
= '10'
   30231: [03/01/2008 09:08:47] Loading preference 'showFactors' = 'off'
   30231: [03/01/2008 09:08:47] Loading preference 'trainingMode' = 'TEFT'
   30231: [03/01/2008 09:08:47] Loading preference 'spamAction' =
'quarantine'
   30231: [03/01/2008 09:08:47] Loading preference 'spamSubject' = '[SPAM]'
   30231: [03/01/2008 09:08:47] Loading preference 'enableBNR' = 'on'
   30231: [03/01/2008 09:08:47] Loading preference 'enableWhitelist' = 'on'
   30231: [03/01/2008 09:08:47] Loading preference
'statisticalSedation' = '5'
   30231: [03/01/2008 09:08:47] Loading preference 'signatureLocation'
= 'message'
   30231: [03/01/2008 09:08:47] Loading preference 'whitelistThreshold'
= '10'
   30231: [03/01/2008 09:08:47] Loading preference 'showFactors' = 'off'
   30231: [03/01/2008 09:08:47] loaded default preferences externally
   30231: [03/01/2008 09:08:47] using
/var/spool/dspam/opt-in/server.com/test.dspam as path
   30231: [03/01/2008 09:08:47] using
/var/spool/dspam/opt-out/server.com/test.nodspam as path
   30231: [03/01/2008 09:08:47] DSPAM Instance Shutdown.  Exit Code: 0
   30231: [03/01/2008 09:08:47] checking trusted user list for root(0)
   250 2.6.0 <[EMAIL PROTECTED]> Message accepted for delivery
   quit
   221 2.0.0 OK
   Connection closed by foreign host.


dspam --version

DSPAM Anti-Spam Suite CVS (agent/library)

Copyright (c) 2002-2006 Jonathan A. Zdziarski
http://dspam.nuclearelephant.com

DSPAM may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the DSPAM distribution kit.

Configuration parameters:  '--host=x86_64-linux-gnu'
'--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/usr/include'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--with-logdir=/var/log/dspam/' '--localstatedir=/var'
'--libexecdir=/usr/lib/dspam' '--srcdir=..'
'--with-dspam-home=/var/spool/dspam' '--sysconfdir=/etc/dspam'
'--enable-domain-scale' '--enable-signature-headers'
'--with-delivery-agent=/usr/bin/procmail' '--enable-daemon'
'--with-mysql-includes=/usr/include/mysql'
'--with-pgsql-includes=/usr/include/postgresql'
'--with-storage-driver=libdb4_drv,mysql_drv,pgsql_drv,sqlite3_drv,hash_drv'
'--enable-ldap' '--enable-debug' '--enable-virtual-users'
'--enable-preferences-extension' '--enable-clamav'
'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
'CFLAGS=-Wall -g -O2' 'CXXFLAGS='




I don't get any syslog from dbspam (other than starting/stopping of the
daemon) and no logging under ../dspam other than dspam/dspam.messages
containing the DATA sent using port 10025. I hope someone can help me.
What's the easiest linux-distribution to get dspam working on - I'm
right now just interested in settung up a dspam for testing only.

Thank you for any advice,
  Martin Glaser

****
Martin Glaser
PM+S Ziviltechnik GmbH
Traunuferstr. 5
4600 Wels
Tel.: +43 7242 6666-0
Fax: +43 7242 6666-08


Reply via email to