[root@mail dspam-3.10.2]
# vi /usr/local/dspam/etc/dspam.conf
#后面带#号的表示要修改的参数
Home
/usr/local/dspam/var/dspam
StorageDriver
/usr/local/dspam/lib/dspam/libmysql_drv
.so
TrustedDeliveryAgent
"/usr/bin/procmail"
DeliveryHost 127.0.0.1
#
DeliveryPort 10024
#
DeliveryIdent localhost
#
DeliveryProto SMTP
#
OnFail error
Trust root
Trust vmail
#添加信任用户
Trust extmail
#
Trust amavis
#
TrainingMode teft
TestConditionalTraining on
Feature whitelist
#自动白名单,同一发件人10封正常邮件0封垃圾邮件时,该记录标为白名单
Algorithm graham burton
Tokenizer chain
PValue bcr
WebStats on
Preference
"trainingMode=TEFT"
Preference
"spamAction=deliver"
#
Preference
"spamSubject=[SPAM]"
Preference
"statisticalSedation=5"
Preference
"enableBNR=on"
Preference
"enableWhitelist=on"
Preference
"signatureLocation=headers"
#只在信头显示!DSPAM:1,49179586289971925617086!标识
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
/var/lib/mysql/mysql
.sock
MySQLUser dspam
#
MySQLPass dspam
#
MySQLDb dspam
#
MySQLCompress
true
#
MySQLReconnect
true
#
MySQLConnectionCache 10
#
MySQLUIDInSignature on
#
Notifications off
PurgeSignatures 14
PurgeNeutral 90
PurgeUnused 90
PurgeHapaxes 30
PurgeHits1S 15
PurgeHits1I 15
LocalMX 127.0.0.1
SystemLog on
UserLog on
Opt out
MaxMessageSize 1048576
#限制检查的邮件最大大小
ServerHost 127.0.0.1
#
ServerPort 10028
#
ServerQueueSize 32
#
ServerPID
/var/run/dspam
.pid
#
ServerMode auto
#
ServerPass.Relay1
"secret"
#
ServerParameters
"--user extmail --deliver=innocent,spam -d %u"
#
ServerIdent
"localhost.localdomain"
#
ClientHost 127.0.0.1
#
ClientPort 10028
#
ClientIdent
"secret@Relay1"
#
ProcessorURLContext on
ProcessorBias on
StripRcptDomain off