Hello,

i have a FreeBSD Server running amavisd-new with clamav and
spamassassin. I want use Dspam with amavisd-new and so i has
search in internet for a intregation HowTo. I find but amavisd-new want
not use dspam. I find not why amavisd-new want not accept Dspam.

# dspam --version

DSPAM Anti-Spam Suite 3.9.0 (agent/library)

Copyright (c) 2002-2009 DSPAM Project
http://dspam.sourceforge.net.

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:  '--sysconfdir=/usr/local/etc'
'--with-logdir=/var/log/dspam' '--with-dspam-home=/var/amavis/dspam'
'--with-dspam-home-owner=vscan' '--with-dspam-home-group=mail'
'--with-dspam-home-mode=0770' '--with-dspam-owner=vscan'
'--with-dspam-group=mail' '--disable-syslog'
'--with-logfile=/var/log/dspam/dspam.log' '--enable-debug'
'--with-mysql-includes=/usr/local/include/mysql'
'--with-mysql-libraries=/usr/local/lib/mysql'
'--enable-client-compression' '--with-storage-driver=hash_drv,mysql_drv'
'--enable-virtual-users' '--enable-long-usernames'
'--with-dspam-mode=4510' '--enable-logging' '--enable-user-logging'
'--prefix=/usr/local' '--mandir=/usr/local/man'
'--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.1'
'build_alias=i386-portbld-freebsd8.1' 'CC=cc' 'CFLAGS=-pipe
-march=athlon-mp -g ' 'LDFLAGS=-L/usr/local/lib' 'LIBS=-L/usr/local/lib
-pthread' 'CPPFLAGS= -I/usr/local/include' 'CXX=c++' 'CXXFLAGS=-pipe
-march=athlon-mp -g'



The dspam config:
Home /var/amavis/dspam
StorageDriver /usr/local/lib/dspam/libmysql_drv.so
TrustedDeliveryAgent "no"
OnFail error

Trust vscan
Trust postfix
Trust root
Trust dspam
Trust apache
Trust mail
Trust mailnull
Trust smmsp
Trust daemon

TrainingMode toe
Feature noise
Feature whitelist
Feature tb=5
Algorithm graham burton
Tokenizer osb
PValue bcr
ImprobabilityDrive on
Opt in
Broken case
Broken lineStripping
MaxMessageSize 4194304
ProcessorURLContext on
ProcessorBias on
StripRcptDomain off
SystemLog       on
UserLog on

Preference "trainingMode=TEFT"
Preference "spamAction=quarantine"
Preference "spamSubject=[SPAM]" 
Preference "statisticalSedation=5"
Preference "enableBNR=on"       
Preference "enableWhitelist=on" 
Preference "signatureLocation=message"
Preference "tagSpam=off"
Preference "tagNonspam=off"
Preference "showFactors=off"
Preference "optIn=off"
Preference "optOut=off"
Preference "whitelistThreshold=10"
Preference "makeCorpus=off"
Preference "storeFragments=off"
Preference "localStore="
Preference "processorBias=on"
Preference "fallbackDomain=off"
Preference "trainPristine=off"
Preference "optOutClamAV=off"
Preference "ignoreRBLLookups=off"
Preference "RBLInoculate=off"
Preference "notifications=off"

AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride fallbackDomain
AllowOverride ignoreGroups
AllowOverride ignoreRBLLookups
AllowOverride localStore
AllowOverride makeCorpus
AllowOverride optIn
AllowOverride optOut
AllowOverride optOutClamAV
AllowOverride processorBias
AllowOverride RBLInoculate
AllowOverride showFactors
AllowOverride signatureLocation
AllowOverride spamAction
AllowOverride spamSubject
AllowOverride statisticalSedation
AllowOverride storeFragments
AllowOverride tagNonspam
AllowOverride tagSpam
AllowOverride trainPristine
AllowOverride trainingMode
AllowOverride whitelistThreshold
AllowOverride dailyQuarantineSummary
AllowOverride notifications


MySQLServer     /tmp/mysql.sock
MySQLPort       3306
MySQLUser       someuser
MySQLPass       somepasswd
MySQLDb         dspam
MySQLCompress   true
MySQLReconnect  true


In the amavisd-new config i write the follow lines after i see it on a
older thread on list:

@spam_scanners = (
['DSPAM', 'Amavis::SpamControl::ExtProg', $dspam,
[ qw(--stdout --classify --deliver=innocent,spam
--user), $daemon_user ],
score_factor => 1,
],
);

# ls -l /usr/local/bin | grep dspam
-r-xr-xr-x  1 vscan  mail    112578 Oct  7 20:07 dspam
-r-xr-xr-x  1 root   wheel    39918 Oct  7 20:07 dspam_2sql
-r-xr-xr-x  1 root   wheel    41021 Oct  7 20:07 dspam_admin
-r-xr-xr-x  1 root   wheel    46350 Oct  7 20:07 dspam_clean
-r-xr-xr-x  1 root   wheel    19264 Oct  7 20:07 dspam_crc
-r-xr-xr-x  1 root   wheel    40403 Oct  7 20:07 dspam_dump
-r-xr-xr-x  1 root   wheel     4202 Oct  7 20:07 dspam_logrotate
-r-xr-xr-x  1 root   wheel    42280 Oct  7 20:07 dspam_merge
-r-xr-xr-x  1 root   wheel    44557 Oct  7 20:07 dspam_stats
-r-xr-xr-x  1 root   wheel     6487 Oct  7 20:07 dspam_train
-r-xr-xr-x  1 root   wheel    80985 Oct  7 20:07 dspamc


But there is no chance find dspam in debug or start from the amavisd-new
daemon:

Oct  8 06:35:09 hetzner amavis[71752]: starting.
/usr/local/sbin/amavisd at hetzner.silviosiefke.de amavisd-new-2.6.4
(20090625), Unicode aware
Oct  8 06:35:09 hetzner amavis[71752]: Perl version               5.010001
Oct  8 06:35:09 hetzner amavis[71753]: Net::Server: Group Not Defined.
Defaulting to EGID '110 110'
Oct  8 06:35:09 hetzner amavis[71753]: Net::Server: User Not Defined.
Defaulting to EUID '110'
Oct  8 06:35:09 hetzner amavis[71753]: Module Amavis::Conf        2.207
Oct  8 06:35:09 hetzner amavis[71753]: Module Archive::Zip        1.30
Oct  8 06:35:09 hetzner amavis[71753]: Module BerkeleyDB          0.43
Oct  8 06:35:09 hetzner amavis[71753]: Module Compress::Zlib      2.015
Oct  8 06:35:09 hetzner amavis[71753]: Module Convert::TNEF       0.17
Oct  8 06:35:09 hetzner amavis[71753]: Module Convert::UUlib      1.33
Oct  8 06:35:09 hetzner amavis[71753]: Module Crypt::OpenSSL::RSA 0.26
Oct  8 06:35:09 hetzner amavis[71753]: Module Digest::MD5         2.39
Oct  8 06:35:09 hetzner amavis[71753]: Module Digest::SHA         5.48
Oct  8 06:35:09 hetzner amavis[71753]: Module IO::Socket::INET6   2.65
Oct  8 06:35:09 hetzner amavis[71753]: Module MIME::Entity        5.428
Oct  8 06:35:09 hetzner amavis[71753]: Module MIME::Parser        5.428
Oct  8 06:35:09 hetzner amavis[71753]: Module MIME::Tools         5.428
Oct  8 06:35:09 hetzner amavis[71753]: Module Mail::DKIM::Signer  0.38
Oct  8 06:35:09 hetzner amavis[71753]: Module Mail::DKIM::Verifier 0.38
Oct  8 06:35:09 hetzner amavis[71753]: Module Mail::Header        2.06
Oct  8 06:35:09 hetzner amavis[71753]: Module Mail::Internet      2.06
Oct  8 06:35:09 hetzner amavis[71753]: Module Net::DNS            0.66
Oct  8 06:35:09 hetzner amavis[71753]: Module Net::Server         0.99
Oct  8 06:35:09 hetzner amavis[71753]: Module Socket6             0.23
Oct  8 06:35:09 hetzner amavis[71753]: Module Time::HiRes         1.9721
Oct  8 06:35:09 hetzner amavis[71753]: Module Unix::Syslog        1.1
Oct  8 06:35:09 hetzner amavis[71753]: Amavis::DB code      loaded
Oct  8 06:35:09 hetzner amavis[71753]: Amavis::Cache code   loaded
Oct  8 06:35:09 hetzner amavis[71753]: SQL base code        NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: SQL::Log code        NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: SQL::Quarantine      NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: Lookup::SQL code     NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: Lookup::LDAP code    NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: AM.PDP-in proto code loaded
Oct  8 06:35:09 hetzner amavis[71753]: SMTP-in proto code   loaded
Oct  8 06:35:09 hetzner amavis[71753]: Courier proto code   NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: SMTP-out proto code  loaded
Oct  8 06:35:09 hetzner amavis[71753]: Pipe-out proto code  NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: BSMTP-out proto code NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: Local-out proto code loaded
Oct  8 06:35:09 hetzner amavis[71753]: OS_Fingerprint code  NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: ANTI-VIRUS code      loaded
Oct  8 06:35:09 hetzner amavis[71753]: ANTI-SPAM code       loaded
Oct  8 06:35:09 hetzner amavis[71753]: ANTI-SPAM-EXT code   loaded
Oct  8 06:35:09 hetzner amavis[71753]: ANTI-SPAM-C code     NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: ANTI-SPAM-SA code    NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: Unpackers code       loaded
Oct  8 06:35:09 hetzner amavis[71753]: DKIM code            loaded
Oct  8 06:35:09 hetzner amavis[71753]: Tools code           NOT loaded
Oct  8 06:35:09 hetzner amavis[71753]: Found $file            at
/usr/local/bin/file
Oct  8 06:35:09 hetzner amavis[71753]: No $altermime,         not using it
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .mail
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .asc
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .uue
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .hqx
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .ync
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .F    at
/usr/local/bin/unfreeze
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .Z    at
/usr/bin/uncompress
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .gz   at
/usr/bin/gzip -d
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .bz2  at
/usr/bin/bzip2 -d
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .lzo  at
/usr/local/bin/lzop -d
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .rpm  at
/usr/local/bin/rpm2cpio.pl
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .cpio at
/bin/pax
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .tar  at
/bin/pax
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .deb  at
/usr/bin/ar
Oct  8 06:35:09 hetzner amavis[71753]: Internal decoder for .zip
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .7z   at
/usr/local/bin/7zr
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .rar  at
/usr/local/bin/unrar
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .arj  at
/usr/local/bin/arj
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .arc  at
/usr/local/bin/nomarch
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .zoo  at
/usr/local/bin/zoo
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .lha  at
/usr/local/bin/lha
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .cab  at
/usr/local/bin/cabextract
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .tnef at
/usr/local/bin/tnef
Oct  8 06:35:09 hetzner amavis[71753]: Found decoder for    .exe  at
/usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/arj
Oct  8 06:35:09 hetzner amavis[71753]: Using primary internal av scanner
code for ClamAV-clamd
Oct  8 06:35:09 hetzner amavis[71753]: Found secondary av scanner
ClamAV-clamscan at /usr/local/bin/clamscan
Oct  8 06:35:09 hetzner amavis[71753]: Creating db in /var/amavis/db/;
BerkeleyDB 0.43, libdb 5.0


Has someone a idea? I dont know what should do for running amavisd-new
with dspam. I has search so much in internet but im really nothing know
more.


Thanks, Regards
Silvio

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to