On Thu, 8 Apr 2010 20:47:00 -0400
Damon <[email protected]> wrote:
> I have installed dspam 3.9.0 from src and have it running in daemon mode.
> It refuses to process messages. The message gets sent to the dspam process
> and it gets sent back to the mail server with no added headers etc. It also
> seems to be bypassing clamav. Im getting pretty much the same behavior when
> runing dspam_train it returns nothing when feeding spam/ham into it for
> training.
>
> Version information
> 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: '--prefix=/usr' '--includedir=/usr/include'
> '--mandir=/usr/share/man' '--infodir=/usr/share/info'
> '--with-logdir=/var/log/dspam/' '--localstatedir=/var'
> '--libexecdir=/usr/lib/dspam' '--with-dspam-home=/var/spool/dspam'
> '--sysconfdir=/etc/dspam' '--enable-domain-scale'
> '--enable-signature-headers' '--enable-daemon'
>
That '--enable-signature-headers' is not needed any more.
> '--with-mysql-includes=/usr/include/mysql'
> '--with-storage-driver=libdb4_drv,mysql_drv,hash_drv' '--enable-debug'
>
DB4 support has been removed from DSPAM some while ago.
> '--enable-virtual-users' '--enable-preferences-extension' '--enable-clamav'
>
> Config:
>
> ## $Id: dspam.conf.in,v 1.91 2009/12/06 16:54:54 sbajic Exp $
> ## dspam.conf -- DSPAM configuration file
> ##
>
> #
> # DSPAM Home: Specifies the base directory to be used for DSPAM storage
> #
> Home /var/spool/dspam
>
> StorageDriver /usr/lib/dspam/libmysql_drv.so
> #StorageDriver /usr/lib/dspam/libhash_drv.so
>
> TrustedDeliveryAgent "/usr/bin/procmail"
>
> DeliveryHost 127.0.0.1
> DeliveryPort 10026
> DeliveryIdent localhost
> DeliveryProto SMTP
>
> #QuarantineAgent "/usr/bin/procmail -d spam"
>
> EnablePlusedDetail on
>
> OnFail error
>
> Trust root
> Trust dspam
> Trust apache
> Trust mail
> Trust mailnull
> Trust smmsp
> Trust daemon
> Trust postfix
> #Trust nobody
> #Trust majordomo
>
> Debug *
> #Debug bob bill
> #
> #DebugOpt process spam fp
>
> TrainingMode teft
>
> TestConditionalTraining on
>
> #Feature noise
> Feature whitelist
> Feature tb=5
>
> #Algorithm chi-square
> #Algorithm naive
> Algorithm graham burton
>
> Tokenizer chain
>
> #PValue robinson
> #PValue markov
> PValue bcr
>
> #
> # WebStats: Enable this if you are using the CGI, which writes .stats files
> WebStats on
>
> #
> # ImprobabilityDrive: Calculate odds-ratios for ham/spam, and add to
> # X-DSPAM-Improbability headers
> #
> ImprobabilityDrive on
>
> #
> # Preferences: Specify any preferences to set by default, unless otherwise
> # overridden by the user (see next section) or a default.prefs file.
> # If user or default.prefs are found, the user's preferences will override
> any
> # defaults.
> #
> Preference "trainingMode=TEFT" # { TOE | TUM | TEFT | NOTRAIN } ->
> default:teft
> Preference "spamAction=quarantine" # { quarantine | tag | deliver } ->
> default:quarantine
> Preference "spamSubject=[SPAM]" # { string } -> default:[SPAM]
> Preference "statisticalSedation=5" # { 0 - 10 } -> default:0
> Preference "enableBNR=on" # { on | off } -> default:off
> Preference "enableWhitelist=on" # { on | off } -> default:on
> Preference "signatureLocation=message" # { message | headers } ->
> default:message
> Preference "tagSpam=on" # { on | off }
> Preference "tagNonspam=off" # { on | off }
> Preference "showFactors=off" # { on | off } -> default:off
> Preference "optIn=off" # { on | off }
> Preference "optOut=on" # { on | off }
>
Your default preferences are to OptOut users.
> Preference "whitelistThreshold=10" # { Integer } -> default:10
> Preference "makeCorpus=off" # { on | off } -> default:off
> Preference "storeFragments=off" # { on | off } -> default:off
> Preference "localStore=" # { on | off } -> default:username
> Preference "processorBias=on" # { on | off } -> default:on
> Preference "fallbackDomain=off" # { on | off } -> default:off
> Preference "trainPristine=off" # { on | off } -> default:off
> Preference "optOutClamAV=off" # { on | off } -> default:off
> Preference "ignoreRBLLookups=off" # { on | off } -> default:off
> Preference "RBLInoculate=off" # { on | off } -> default:off
>
> #
> # Overrides: Specifies the user preferences which may override configuration
> # and commandline defaults. Any other preferences supplied by an untrusted
> user
> # will be ignored.
> #
> 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
>
> # --- MySQL ---
>
> #
> # Storage driver settings: Specific to a particular storage driver.
> Uncomment
> # the configuration specific to your installation, if applicable.
> #
> MySQLServer /var/run/mysqld/mysqld.sock
> MySQLPort
> DMySQLUser UID
> MySQLPass PASS
> MySQLDb dspam
> #MySQLCompress true
> MySQLReconnect true
>
>
> MySQLVirtualTable dspam_virtual_uids
> MySQLVirtualUIDField uid
> MySQLVirtualUsernameField username
>
> MySQLUIDInSignature on
>
> #
> HashRecMax 98317
>
> HashAutoExtend on
>
>
> HashMaxExtents 0
>
> HashExtentSize 49157
>
> HashPctIncrease 10
>
> HashMaxSeek 10
>
> HashConnectionCache 10
>
>
> #
> Notifications off
>
> PurgeSignatures 14 # Stale signatures
> PurgeNeutral 90 # Tokens with neutralish probabilities
> PurgeUnused 90 # Unused tokens
> PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes)
> PurgeHits1S 15 # Tokens with only 1 spam hit
> PurgeHits1I 15 # Tokens with only 1 innocent hit
>
> LocalMX 127.0.0.1
>
> SystemLog on
> UserLog on
>
> Opt out
>
And here you set the default to Opted out (this is not to be confused with
OptOut=on).
> ParseToHeaders on
> ChangeModeOnParse on
> ChangeUserOnParse full
>
> MaxMessageSize 4194304
>
> #
> # Virus Checking: If you are running clamd, DSPAM can perform stream-based
> # virus checking using TCP. Uncomment the values below to enable virus
> # checking.
> #
> # ClamAVResponse: reject (reject or drop the message with a permanent
> failure)
> # accept (accept the message and quietly drop the message)
> # spam (treat as spam and quarantine/tag/whatever)
> #
> ClamAVPort 3310
> ClamAVHost 127.0.0.1
> ClamAVResponse reject
>
> # -- CLIENT / SERVER --
>
> #
> # Daemonized Server: If you are running DSPAM as a daemonized server using
> # --daemon, the following parameters will override the default. Use the
> # ServerPass option to set up accounts for each client machine. The DSPAM
> # server will process and deliver the message based on the parameters
> # specified. If you want the client machine to perform delivery, use
> # the --stdout option in conjunction with a local setup.
> #
> # ServerHost: Not enabling ServerHost will bind DSPAM server to all
> available
> # interfaces.
> #
> #ServerHost 127.0.0.1
> #ServerPort 24
> #ServerQueueSize 32
> ServerPID /var/run/dspam.pid
>
>
> ServerMode standard
>
> #ServerParameters "--deliver=innocent -d %u"
> ServerParameters "--deliver=innocent, spam "
> ServerIdent "localhost.localdomain"
>
> #ServerDomainSocketPath "/var/run/dspam.sock"
> # chroot postfix
> ServerDomainSocketPath "/var/spool/postfix/private/dspam.sock"
>
> ProcessorURLContext on
>
> ProcessorBias on
> StripRcptDomain off
>
> ## EOF
>
> from log
> 11909: [04/09/2010 00:27:30] checking trusted user list for root(0)
> 11909: [04/09/2010 00:27:30] No QuarantineAgent option found. Using standard
> quarantine.
> 11909: [04/09/2010 00:27:30] using database handle id 1
> 11909: [04/09/2010 00:27:30] handle locked
> 11909: [04/09/2010 00:27:30] DSPAM Instance Startup
> 11909: [04/09/2010 00:27:30] input args: dspam --deliver=innocent, spam
> 11909: [04/09/2010 00:27:30] pass-thru args: /usr/bin/procmail spam
> 11909: [04/09/2010 00:27:30] processing user [email protected]
> 11909: [04/09/2010 00:27:30] uid = 0, euid = 0, gid = 0, egid = 8
> 11909: [04/09/2010 00:27:30] loading preferences for user t...@domain
> 11909: [04/09/2010 00:27:30] _mysql_drv_getpwnam: successful returning
> struct for name: t...@domain
> 11909: [04/09/2010 00:27:30] Loading preferences for uid 1
> 11909: [04/09/2010 00:27:30] Loading preferences for uid 0
> 11909: [04/09/2010 00:27:30] Loading preferences for uid 0
> 11909: [04/09/2010 00:27:30] loaded default preferences externally
> 11909: [04/09/2010 00:27:30] using /var/spool/dspam/opt-in/DOMAIN/test.dspam
> as path
> 11909: [04/09/2010 00:27:30] using
> /var/spool/dspam/opt-out/DOMAIN/test.nodspam as path
> 11909: [04/09/2010 00:27:30] Establishing connection to 127.0.0.1:10026
> 11909: [04/09/2010 00:27:30] Connection established
> 11909: [04/09/2010 00:27:30] DSPAM Instance Shutdown. Exit Code: 0
> 11909: [04/09/2010 00:27:30] checking trusted user list for root(0)
>
No wonder this is not working. To fix that small issue just do:
dspam_admin ch pref [email protected] optIn on
dspam_admin ch pref [email protected] optOut off
And then retry again to process mail with the user "[email protected]".
> One last question o i have to add avery virtual user to the DB to keep
> mydql_drv from complaining? (postfix/postfix.admin mysql)
>
You are using Postfix.Admin to maintain your users? If so then better would be
to enable the hooks in Postfix.Admin and create users in DSPAM with the
"mailbox_postcreation_script" hook provided by Postfix.Admin. (I have scripts
written for that if you need them).
> thanks
--
Kind Regards from Switzerland,
Stevan Bajić
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user