Hi, Dspam is working for scanning the incoming email.
Now I need to make it work for the teaching dspam. Using CentOS 6.3 64bit, postfix and postgresql. dspam is working in daemon mode. The uid is in the signature. Somehow dspam is not reading the uid in the signature. I am sure the error is that I have not configured something correctly. Here is the section from master.cf of postfix, which I suspect I must have configured wrongly. ----------------------- start ------------------------------- spam_dspam unix - n n - - pipe flags=Ru user=vmail argv=/usr/bin/dspam --user vmail --class=spam --source=error ------------------------- end ------------------------------- If I set this to the following it works but only for my username. ----------------------- start ------------------------------- spam_dspam unix - n n - - pipe flags=Ru user=vmail argv=/usr/bin/dspam --user pvanth...@example.com --class=spam --source=error ------------------------- end ------------------------------- Need advice on the correct settings to use so that an email like s...@example.com can be used for all users. My dspam.conf ------------------ start ------------------------------- Home /var/lib/dspam StorageDriver /usr/lib64/dspam/libpgsql_drv.so DeliveryHost 127.0.0.1 DeliveryPort 10026 DeliveryIdent localhost DeliveryProto SMTP OnFail error Trust root Trust dspam Trust vmail TrainingMode toe TestConditionalTraining on Feature noise Feature whitelist Feature tb=0 Algorithm graham burton Tokenizer osb PValue bcr WebStats on ImprobabilityDrive on Preference "trainingMode=TOE" # { TOE | TUM | TEFT | NOTRAIN } -> default:teft Preference "spamAction=tag" # { quarantine | tag | deliver } -> default:quarantine Preference "spamSubject=[SPAM]" # { string } -> default:[SPAM] Preference "statisticalSedation=0" # { 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=off" # { on | off } 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 Preference "notifications=off" # { on | off } -> default: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 PgSQLServer /tmp/ PgSQLUser dbuser PgSQLPass password PgSQLDb dbname PgSQLConnectionCache 3 PgSQLUIDInSignature on PgSQLVirtualTable dspam_virtual_uids PgSQLVirtualUIDField uid PgSQLVirtualUsernameField username HashRecMax 98317 HashAutoExtend on HashMaxExtents 0 HashExtentSize 49157 HashPctIncrease 10 HashMaxSeek 10 HashConnectionCache 10 # 'strict' enforces both verify and map # There are plans to support both MySQL and Postgres. # an executable lookup program and its arguments. # and ExtLookupMode 'map' or 'strict' IgnoreHeader acceptlanguage TxtDirectory /var/lib/dspam/txt 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 Broken case MaxMessageSize 4194304 ServerHost 127.0.0.1 ServerPID /var/run/dspam/dspam.pid ServerMode standard ServerParameters "--deliver=innocent,spam" ServerIdent "hostname.example.com" ServerDomainSocketPath "/var/run/dspam/dspam.sock" ProcessorURLContext on ProcessorBias on StripRcptDomain off GroupConfig /var/lib/dspam/group -------------------- end ------------------------------- ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user