On Fri, 6 Aug 2010 03:23:54 +0200 (CEST)
"Imposit.com - webmaster" <webmas...@imposit.com> wrote:

> Hello,
> 
> So this time a real bug not just a stupid assbitting mistake :-)
> and a curiose error but first lets stick to the bug.
> 
> 
> Following Setup 
> Dspam 3.9.1
> Mysql Driver
> Systemusers (no virtual)
> 
> When i delete a Userdirectory /var/spool/dpsm/data/* in the System WHICH HAS 
> AN ENTRY in dspam_stats the andmin console will not show anyuser after that 
> UID
> 
> I think the error is around line 330 in the admin.cgi
> there is a while which goes row after row and fetches the data from the 
> homedirectory but it will fail because its no longer there
> so i would do a check if exist there
> 
The issue is not in admin.cgi but in the way how _ds_get_nextuser() works. 
Calling _ds_get_nextuser() should return a list of known DSPAM users. As soon 
there are no more users the function is returning a NULL. And dspam_stats is 
handling a NULL as end of list (aka: no more users). However... if a user is 
found in the stats table but there is no system user (in your case since you 
don't use virtual users) then _ds_get_nextuser() will return a NULL (aka: no 
user with that name) and then dspam_stats (and other DSPAM binaries) will 
assume that there are no more users to list.

I can fix that but this will require me to change quite a lot of code and 
change how the helper applications/functions are handling the enumeration of 
users.


> yes this all wont happen if everything is in the mysqldb :-) *ggg*
> 
Hmm... yeah. The problem is because you have your users NOT in MySQL but some 
where else. Hmm... what should I say?

btw: I am still open for patches adding enhancements to DSPAM. Send me the 
patch/code that is pushing everything to be in the storage backend. I would 
happely apply the patch to the current DSPAM code.


> 
> 
> To my error here ife no frkn idea anymore
> Today i switched to OSB
> after my usual backup, i truncated signatures_data and token_data and started 
> to train like hell (5000 ham 9000 spam :-)
> 
> 
> So now and this is the cusiose part, when i try to retrain the webui history 
> i get an log entry in the http and nothing happen (no retrain)
> 
>  /var/log/dspam/dspam.log: Permission denied31802: [08/06/2010 01:07:35] 
> Signature retrieval for '`' failed, referer: 
> https://example.com/spambox/dspam.cgi?user=blabla&template=history&language=de&show=innocent
> ] /var/log/dspam/dspam.log: Permission denied31802: [08/06/2010 01:07:35] 
> Unable to find a valid signature. Aborting., referer: 
> https://example.com/spambox/dspam.cgi?user=blabla&template=history&language=de&show=innocent
> ] /var/log/dspam/dspam.log: Permission denied31802: [08/06/2010 01:07:35] 
> process_message returned error 0.  dropping message., referer: 
> https://example.com/spambox/dspam.cgi?user=blabla&template=history&language=de&show=innocent
> 
> 
> so i thought ok i reset directory permissions as they where bevore jsut to be 
> shure
> so the user data dir is nor again on chown username:dspam rwx for ownser and 
> group
> 
> 
> after that permission error was gone (interresting becuase the permissions 
> should be different but ok whatever)
> 
> but retrain by history still dont work. so wtf is going on now.
> its really nothing else happen then truncate those 2 tables, set to osb
> start dspam_train with my mboxes ...
> moved all quarantine mboxes to an archive directory - so i can watch a little 
> the impact of the switch
> waited for new mail
> try to retrain it ... 
> done dont work
> 
> or better, retrain itself works. i turned on debug. signature goes trough and 
> marked as spam (i train to spam)
> BUT history dont show the result anymore 
> 
> 
> ahh and i cant deliver a quarantine message. 
> Aug  6 02:09:35 mail dspam[5085]: Unable to find a valid signature. Aborting.
> Aug  6 02:09:35 mail dspam[5085]: process_message returned error -5.  
> dropping message.
> i get when i try from the mail log
> 
> 
> 
> i purged now everything and started with a new db from sratch
> same as bevore
> 
> 
> any idea?
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> Dspam-devel mailing list
> Dspam-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-devel
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to