(the original mail was wrote directly to me from Paul Cockings, so i
replied to his address. Now i'm forwarding to mailling list cause i
don't have received any answer from he)

-------- Messaggio originale --------
Oggetto:        Re: [Dspam-user] Webfronted retrain problem with alias mailboxes
Data:   Thu, 17 Jun 2010 23:47:58 +0200
Mittente:       Ettore - Kreos Solutions <ett...@serverkreos.com>
A:      Paul Cockings <ds...@cytringan.co.uk>



Il 17/06/2010 21.20, Paul Cockings ha scritto:
> On 17/06/10 00:12, Ettore - Kreos Solutions wrote:
>> Are you experiencing the same problem? Is this a issue or it's only in
>> my setup?
>>
>>    
> This is not a problem on my setup.  Can you take a look in the logs to
> see if there are any clues?  Do you have debugging enabled?
>
I just enabled debug. I tried with 3 alias to a different address and i
got always the same problem.

t...@serverkreos.com is an alias for st...@serverkreos.com

Here's debug output after clicking the "As spam" link in the webfrontend:
12153: [06/17/2010 23:33:55] DSPAM Instance Startup
12153: [06/17/2010 23:33:55] input args: /usr/bin/dspam --source=error
--class=spam --signature=15,4c18a629145605692011161 --user
t...@serverkreos.com
12153: [06/17/2010 23:33:55] pass-thru args:
12153: [06/17/2010 23:33:55] processing user t...@serverkreos.com
12153: [06/17/2010 23:33:55] uid = 108, euid = 108, gid = 113, egid = 113
12153: [06/17/2010 23:33:55] loading preferences for user
t...@serverkreos.com
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam: successful returning
struct for name: t...@serverkreos.com
12153: [06/17/2010 23:33:55] Loading preferences for uid 15
12153: [06/17/2010 23:33:55] Loading preferences for uid 0
12153: [06/17/2010 23:33:55] Loading preferences for uid 0
12153: [06/17/2010 23:33:55] default preferences empty. reverting to
dspam.conf preferences.
12153: [06/17/2010 23:33:55] Loading preferences from dspam.conf
12153: [06/17/2010 23:33:55] using
/var/spool/dspam/opt-in/serverkreos.com/tech.dspam as path
12153: [06/17/2010 23:33:55] using
/var/spool/dspam/opt-out/serverkreos.com/tech.nodspam as path
12153: [06/17/2010 23:33:55] sedation level set to: 5
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam: successful returning
struct for name: t...@serverkreos.com
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam returning cached name
t...@serverkreos.com.
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam returning cached name
t...@serverkreos.com.
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam: successful returning
struct for name: st...@serverkreos.com
12153: [06/17/2010 23:33:55] loading preferences for user
st...@serverkreos.com
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam: successful returning
struct for name: st...@serverkreos.com
12153: [06/17/2010 23:33:55] Loading preferences for uid 15
12153: [06/17/2010 23:33:55] Loading preferences for uid 0
12153: [06/17/2010 23:33:55] Loading preferences for uid 0
12153: [06/17/2010 23:33:55] default preferences empty. reverting to
dspam.conf preferences.
12153: [06/17/2010 23:33:55] Loading preferences from dspam.conf
12153: [06/17/2010 23:33:55] processing signature.  length: 936
12153: [06/17/2010 23:33:55] Reversing 78 tokens
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam returning cached name
st...@serverkreos.com.
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam returning cached name
st...@serverkreos.com.
12153: [06/17/2010 23:33:55] Control: [10 10] [11 9] Delta: [1 4294967295]
12153: [06/17/2010 23:33:55] Message classification/result: SPAM
12153: [06/17/2010 23:33:55] reclassifying iteration 1 result: 0
12153: [06/17/2010 23:33:55] libdspam returned probability of 1.000000
12153: [06/17/2010 23:33:55] message result: SPAM
12153: [06/17/2010 23:33:55] _mysql_drv_getpwnam returning cached name
st...@serverkreos.com.
12153: [06/17/2010 23:33:55] DSPAM Instance Shutdown.  Exit Code: 0

Checking the logs:
15,4c1a6555145601830411420 : spam message sent to st...@serverkreos.com,
missed, and correctly retrained as spam from the webui.
15,4c18a629145605692011161 : spam message sent to t...@serverkreos.com,
missed, but not "retrainable" as spam.

> cat ../staff/staff.log | grep 4c1a6555145601830411420
1276798293      I       edtth deby <edith_bl...@live.com>      
15,4c1a6555145601830411420      Hello dear ,    Delivered      
<col108-w53589f14389560220e818fa...@phx.gbl>
1276811657      M       <None Specified>       
15,4c1a6555145601830411420      <None Specified>        Retrained

> cat tech.log | grep 4c18a629145605692011161
1276683817      I       r...@time.eu (root)
15,4c18a629145605692011161      test    Delivered      
<20100616103632.8e95e2e0...@time.eu>

In the tech.log there isn't the retrain action log and obiovusly that's
the reason for which the webui doesn't show it as "Miss". I think.

I also had a look into the source code, and this appears to me like a
issue: dspam replaces the context (and so the original address) with the
new one got from the db driver that, in presence of an alias,
"correctly" returns the real user context. After that it writes the log
line to the current context address, that is the REAL mailbox address
and not the original aliased one.
If that's right, this problem should affect everyone.

Am i wrong?

Cheers,
Ettore

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to