On 28/02/11 22:27, Robert Z wrote:
> 
> I can not for the life of me make DSPAM find the "X-DSPAM-Signature" in the 
> header.
> But when I move the signature to the email body DSPAM finds the signature 
> without issue and trains.
> 
> Can someone please look at my dspam.conf and see if my settings are correct.
> Been working on this for a few days I realy want to use DSPAM.
> 
> Robert
> 
> 
> =======dspam.conf===
> 
> Home /var/db/dspam
> StorageDriver /usr/local/lib/dspam/libmysql_drv.so
> TrustedDeliveryAgent "/usr/local/libexec/dovecot/deliver -f ${sender} -d 
> ${recipient}"
> 
> OnFail error
> 
> Trust root
> Trust dspam
> Trust virtual
> Trust dovecot
> Trust mail
> Trust daemon
> 
> TrainingMode teft
> TestConditionalTraining on
> Feature whitelist
> Algorithm graham burton
> Tokenizer chain
> PValue bcr
> WebStats off
> 
> Preference "trainingMode=TEFT"
> Preference "spamAction=tag"
> Preference "spamSubject=[SPAM]"
> Preference "statisticalSedation=5"
> Preference "enableBNR=on"
> Preference "enableWhitelist=on"
> Preference "signatureLocation=headers"
> 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"
> 
> #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
> 
> #IgnoreHeader X-Spam-Status
> #IgnoreHeader X-Spam-Scanned
> #IgnoreHeader X-Virus-Scanner-Result
> IgnoreHeader DKIM-Signature
> IgnoreHeader X-YMail-OSG
> IgnoreHeader Message-ID
> IgnoreHeader DomainKey-Signature
> 
> MySQLServer             10.0.0.3
> MySQLPort               3306
> MySQLUser               postfix
> MySQLPass               xxxxx
> MySQLDb                 postfix
> 
> MySQLReadSignaturesFromWriteDb on
> 
> 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
> PurgeNeutral    90
> PurgeUnused     90
> PurgeHapaxes    30
> PurgeHits1S     15
> PurgeHits1I     15
> 
> LocalMX 127.0.0.1
> SystemLog       on
> UserLog         on
> Opt out
> ServerMode standard
> 
> ServerParameters        "--deliver=innocent -d %u"
> ServerIdent             "mydomain.com"
> ServerDomainSocketPath  "/var/spool/postfix/dspam/dspam.sock"
> 
> ProcessorURLContext on
> ProcessorBias on
> StripRcptDomain off
> 
> ======END dspam.conf
> 
> =======Maillog======
> 
> Feb 28 12:39:35 mydomain.com postfix/smtpd[68817]: connect from 
> adsl-75-52-254-4.dsl.pltn13.sbcglobal.net[75.52.254.4]
> Feb 28 12:39:36 mydomain.com postfix/trivial-rewrite[68812]: warning: do not 
> list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
> Feb 28 12:39:36 mydomain.com postfix/trivial-rewrite[68812]: warning: do not 
> list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
> Feb 28 12:39:36 mydomain.com postfix/smtpd[68817]: 95D5D7AB47: 
> client=adsl-75-52-254-4.dsl.pltn13.sbcglobal.net[75.52.254.4], 
> sasl_method=PLAIN, sasl_username=r...@mydomain.com
> Feb 28 12:39:37 mydomain.com postfix/cleanup[68813]: 95D5D7AB47: 
> message-id=<4d6c0859.9070...@mydomain.com>
> Feb 28 12:39:37 mydomain.com postfix/qmgr[66198]: 95D5D7AB47: 
> from=<r...@mydomain.com>, size=2133, nrcpt=1 (queue active)
> Feb 28 12:39:37 mydomain.com postfix/trivial-rewrite[68812]: warning: do not 
> list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
> Feb 28 12:39:37 mydomain.com dspam[68819]: Unable to find a valid signature. 
> Aborting.
> Feb 28 12:39:37 mydomain.com dspam[68819]: process_message returned error -5. 
>  
> dropping message.
> Feb 28 12:39:37 mydomain.com postfix/pipe[68818]: 95D5D7AB47: 
> to=<s...@mydomain.com>, relay=dspam-retrain, delay=0.62, delays=0.6/0/0/0.01, 
> dsn=2.0.0, status=sent (delivered via dspam-retrain service)
> Feb 28 12:39:37 mydomain.com postfix/qmgr[66198]: 95D5D7AB47: removed
> Feb 28 12:39:37 mydomain.com postfix/smtpd[68817]: disconnect from 
> adsl-75-52-254-4.dsl.pltn13.sbcglobal.net[75.52.254.4]
> Feb 28 12:42:57 mydomain.com postfix/anvil[68810]: statistics: max connection 
> rate 1/60s for (smtp:209.191.87.89) at Feb 28 12:39:16
> Feb 28 12:42:57 mydomain.com postfix/anvil[68810]: statistics: max connection 
> count 1 for (smtp:209.191.87.89) at Feb 28 12:39:16
> Feb 28 12:42:57 mydomain.com postfix/anvil[68810]: statistics: max cache size 
> 2 
> at Feb 28 12:39:35
> Feb 28 13:02:40 mydomain.com dspam[68976]: Unable to determine the 
> destination 
> user
> Feb 28 13:02:40 mydomain.com dspam[68976]: DSPAM agent misconfigured: aborting
> Feb 28 13:14:40 mydomain.com dovecot: imap(r...@mydomain.com): Disconnected: 
> Logged out bytes=416/1002
> 
> ======END maillog======
> 
> 
> ==========OS======
> FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 25 19:28:31 CET 2011    
> :/usr/obj/usr/src/sys/GENERIC  i386
> =========END OS===
> 
> ============== 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/db/dspam' 
> '--with-dspam-home-owner=root' '--with-dspam-home-group=mail' 
> '--with-dspam-home-mode=0770' '--with-dspam-owner=root' 
> '--with-dspam-group=mail' '--enable-syslog' '--enable-debug' 
> '--enable-verbose-debug' '--enable-preferences-extension' '--enable-daemon' 
> '--enable-clamav' '--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-domain-scale' '--with-dspam-mode=4510' '--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 -g ' 'LDFLAGS=-L/usr/local/lib' 'LIBS=-L/usr/local/lib 
> -pthread' 
> 'CPPFLAGS= -I/usr/local/include' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-pipe -g'
> ============END dspam --version=========================
> 

Hi,

Please also include details on how you make postfix hand over the e-mail
to dspam. It seems that you are using a 'dspam-retrain' entry in
master.cf, please show its contents.

--
Tom

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to