ציטוט Mark Constable:
Hi folks, just trying out dspam for the first time on a
debian box with courier-mta and maildrop using dspam 3.6.8
and the libdspam7-drv-sqlite3 deb package. Messages are
delivered to my Inbox but there is no sign of any dspam
X-DSPAM-Result header. Any suggestions ?
You have Opt in in the configuration file. You need to specifically aopt
in by adding the required file to your mail box, or change the setting
to Opt out.
# grep -E -v "^(#|$)" /etc/dspam/dspam.conf
Home /var/spool/dspam
StorageDriver /usr/lib/dspam/libsqlite3_drv.so
TrustedDeliveryAgent "/usr/bin/maildrop -d %u"
UntrustedDeliveryAgent "/usr/bin/maildrop -d %u"
OnFail error
Trust root
Trust dspam
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
Debug *
TrainingMode teft
TestConditionalTraining on
Feature chained
Feature whitelist
Algorithm graham burton
PValue graham
ImprobabilityDrive on
Preference "spamAction=tag"
Preference "signatureLocation=headers" # 'message' or 'headers'
Preference "showFactors=on"
Preference "spamAction=tag"
Preference "spamSubject=*SPAM*"
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
HashRecMax 98317
HashAutoExtend on
HashMaxExtents 0
HashExtentSize 49157
HashMaxSeek 100
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 in
ProcessorBias on
Include /etc/dspam/dspam.d/
# ll /var/spool/dspam/data/renta.net/markc
total 52
-rw-rw---- 1 daemon dspam 174 2008-01-05 01:43 markc.log
-rw-rw-r-- 1 daemon dspam 12 2008-01-05 02:56 markc.rstats
-rw-rw---- 1 daemon dspam 37888 2008-01-05 01:43 markc.sdb
-rw-rw---- 1 daemon dspam 12 2008-01-05 01:43 markc.stats
(courier runs as the daemon:daemon user/group)
# ll /usr/bin/dspam
-rwxr-sr-x 1 dspam dspam 92196 2007-04-16 01:38 /usr/bin/dspam*
# cat .prefilter (included from /etc/courier/maildroprc)
import RECIPIENT
FROM='[EMAIL PROTECTED]'
import SENDER
if ($SENDER eq "")
{
SENDER=$FROM
}
`test -d $HOME/Maildir/.Dspam`
if (!$RETURNCODE)
{
xfilter "/usr/bin/dspam --user $RECIPIENT --stdout --deliver=innocent,spam"
if (/^X-DSPAM-Result: Spam/:h)
{
to "./Maildir/.Dspam/."
}
else
{
to "./Maildir/."
}
}
else
{
log "No Dspam filtering"
}
--markc
!DSPAM:500,477f7c2b79844168971609!