On 11/25/2013 03:05 PM, Guillaume Hilt wrote: > Hello again, > > I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam : > dovecot 2.2.8, dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429 > (recompiled after each dovecot upgrade). > > When i'm moving an email to my Spam folder, I get an error with > Thunderbird and in my logs (dspam is compiled in debug mode) > > DSPAM in run with root:root. > > uid 1001 is user vmail (dovecot is running under vmail) > gid 12 is group mail (vmail is a member, with > mail,postfix,dspam,dovecot,apache) > All the necessary users are trusted in dspam configuration. > > (full log below) > > 32201: [11/25/2013 14:52:04] DSPAM Instance Startup > 32201: [11/25/2013 14:52:04] input args: /usr/bin/dspam --user > gh...@shadowprojects.org --deliver= --source=error > --signature=89,52900600118151560172939 --class=spam > 32201: [11/25/2013 14:52:04] pass-thru args: > 32201: [11/25/2013 14:52:04] processing user gh...@shadowprojects.org > 32201: [11/25/2013 14:52:04] uid = 1001, euid = 0, gid = 12, egid = 12 > 32201: [11/25/2013 14:52:04] loading preferences for user > gh...@shadowprojects.org > 32201: [11/25/2013 14:52:04] read attribute 'Home' > ... > 32201: [11/25/2013 14:52:05] find attribute 'Broken' > 32201: [11/25/2013 14:52:05] -> found attribute 'Broken' with value > 'returnCodes' > 32201: [11/25/2013 14:52:05] -> matched attribute 'Broken' with value > 'returnCodes' > 32201: [11/25/2013 14:52:05] DSPAM Instance Shutdown. Exit Code: 99 > 32201: [11/25/2013 14:52:05] process_users() failed on error 99 > 32201: [11/25/2013 14:52:05] destroying/freeing configuration > > DSPAM configuration : > Home /var/spool/dspam > StorageDriver /usr/lib64/dspam/libmysql_drv.so > DeliveryHost 127.0.0.1 > DeliveryPort 10020 > DeliveryIdent localhost > DeliveryProto SMTP > QuarantineAgent "/usr/libexec/dovecot/deliver -d %u -m Spam" > OnFail error > Trust root > Trust dspam > Trust apache > Trust mail > Trust mailnull > Trust smmsp > Trust daemon > Trust vmail > Trust dovecot > Trust postfix > Debug gh...@apteo.com > DebugOpt process spam fp > TrainingMode teft > TestConditionalTraining on > Feature noise > Feature whitelist > Algorithm graham burton > Tokenizer osb > PValue graham > WebStats off > Preference "signatureLocation=headers" # 'message' or 'headers' > Preference "showFactors=off" > Preference "spamAction=tag" # tag/deliver/quarantine > Preference "spamSubject=[SPAM] " > Preference "trainingMode=TEFT" > AllowOverride trainingMode > AllowOverride spamAction spamSubject > AllowOverride statisticalSedation > AllowOverride enableBNR > AllowOverride enableWhitelist > AllowOverride signatureLocation > AllowOverride showFactors > AllowOverride optIn optOut > AllowOverride whitelistThreshold > MySQLServer /run/mysqld/mysqld.sock > MySQLPort 3306 > MySQLUser dspam > MySQLPass mKsdQ4mMvyBZv3r3 > MySQLDb srv_dspam > MySQLReconnect true > MySQLConnectionCache 20 > MySQLVirtualTable dspam_virtual_uids > MySQLVirtualUIDField uid > MySQLVirtualUsernameField username > MySQLUIDInSignature on > HashRecMax 98317 > HashAutoExtend on > HashMaxExtents 0 > HashExtentSize 49157 > HashPctIncrease 10 > HashMaxSeek 10 > HashConnectionCache 10 > IgnoreHeader X-Spam-Status > IgnoreHeader X-Spam-Scanned > IgnoreHeader X-Virus-Scanner-Result > Notifications off > PurgeSignature off # Specified in purge.sql > PurgeNeutral 90 > PurgeUnused off # Specified in purge.sql > PurgeHapaxes off # Specified in purge.sql > PurgeHits1S off # Specified in purge.sql > PurgeHits1I off # Specified in purge.sql > LocalMX 127.0.0.1 > SystemLog on > UserLog on > TrainPristine off > Opt out > TrackSources spam virus nonspam > Broken returnCodes > Broken case > Broken lineStripping > ClamAVPort 3310 > ClamAVHost 127.0.0.1 > ClamAVResponse reject > ServerPort 2424 > ServerQueueSize 32 > ServerPID /run/dspam/dspam.pid > ServerMode auto > ServerPass.Relay1 "secret" > ServerParameters "--deliver=innocent,spam -d %u" > ServerIdent "mail.apteo.com" > ServerDomainSocketPath "/run/dspam/dspam.sock" > ClientHost "/run/dspam/dspam.sock" > ClientIdent "secret@Relay1" > ProcessorURLContext on > ProcessorBias on > StripRcptDomain off > > > Full DSPAM debug log : > ==> /var/log/dspam/dspam.debug <==
<snipped debug log of successful spam detection> > 32201: [11/25/2013 14:52:05] _mysql_drv_getpwnam returning cached name > cont...@shadowprojects.org. > 32201: [11/25/2013 14:52:05] destroying/freeing configuration > 32201: [11/25/2013 14:52:05] match attribute 'Broken' with value > 'returnCodes' > 32201: [11/25/2013 14:52:05] find attribute 'Broken' > 32201: [11/25/2013 14:52:05] -> found attribute 'Broken' with value > 'returnCodes' > 32201: [11/25/2013 14:52:05] -> matched attribute 'Broken' with value > 'returnCodes' > 32201: [11/25/2013 14:52:05] DSPAM Instance Shutdown. Exit Code: 99 > 32201: [11/25/2013 14:52:05] process_users() failed on error 99 > 32201: [11/25/2013 14:52:05] destroying/freeing configuration > >From src/dspam.c: /* Exit code 99 for spam (when using broken return codes) */ if (_ds_match_attribute(agent_config, "Broken", "returnCodes")) { if (result == DSR_ISSPAM) return_code = 99; } DSPAM logs the debug message stating 'failure' when the return code from process_users() isn't 0, which is a bit misleading here, since you requested that specific exit code by setting 'Broken returnCodes' in config (i.e. it isn't a real failure, since the message was successfully classified as spam). Long story short: - why did you enable the 'Broken returnCodes' (and the other Broken ... settings)? - Is your problem solved when you disable that setting? Regards, Tom ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user