Bug Tracker item #3537735, was opened at 2012-06-25 06:06
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3537735&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v3.6.8
Status: Open
Resolution: Postponed
Priority: 5
Private: No
Submitted By: kloetpatra (kloetpatra)
Assigned to: Stevan Bajic (sbajic)
Summary: dspam_stats creating non-existent users

Initial Comment:
Hi!
when i'm using dspam_stats for non-existent users it will create the user...
for example invoking "dspam_stats -H xyzuser"

ls -la /var/spool/dspam/data/local/xyzuser
total 2316
drwxr-x---  2 root root    4096 2012-06-25 15:04 ./
drwxr-x--- 12 root root    4096 2012-06-25 15:04 ../
-rw-r--r--  1 root root 2359688 2012-06-25 15:04 xyzuser.css
-rw-r--r--  1 root root       0 2012-06-25 15:04 xyzuser.lock


----------------------------------------------------------------------

>Comment By: Stevan Bajic (sbajic)
Date: 2012-06-26 05:39

Message:
> I did the changes, and dspam_stats is still adding new users.
> 
This is very strange. I run over here the GIT version and I can not make my
DSPAM to produce the same result as you have:

theia ~ # ls -lah /var/spool/dspam/data/localdomain/testuser
ls: cannot access /var/spool/dspam/data/localdomain/testuser: No such file
or directory
theia ~ # dspam_stats -H testuser@localdomain
testuser@localdomain:
                TP True Positives:                     0
                TN True Negatives:                     0
                FP False Positives:                    0
                FN False Negatives:                    0
                SC Spam Corpusfed:                     0
                NC Nonspam Corpusfed:                  0
                TL Training Left:                   2500
                SHR Spam Hit Rate                100.00%
                HSR Ham Strike Rate:             100.00%
                PPV Positive predictive value:   100.00%
                OCA Overall Accuracy:            100.00%

theia ~ # ls -lah /var/spool/dspam/data/localdomain/testuser
ls: cannot access /var/spool/dspam/data/localdomain/testuser: No such file
or directory
theia ~ # ls -lah /var/spool/dspam/data/localdomain
ls: cannot access /var/spool/dspam/data/localdomain: No such file or
directory
theia ~ # dspam_stats -H testuser
testuser:
                TP True Positives:                     0
                TN True Negatives:                     0
                FP False Positives:                    0
                FN False Negatives:                    0
                SC Spam Corpusfed:                     0
                NC Nonspam Corpusfed:                  0
                TL Training Left:                   2500
                SHR Spam Hit Rate                100.00%
                HSR Ham Strike Rate:             100.00%
                PPV Positive predictive value:   100.00%
                OCA Overall Accuracy:            100.00%

theia ~ # ls -lah /var/spool/dspam/data/local/testuser
ls: cannot access /var/spool/dspam/data/local/testuser: No such file or
directory
theia ~ # ls -lah /var/spool/dspam/data/local
ls: cannot access /var/spool/dspam/data/local: No such file or directory
theia ~ #


> Have to say that I'm not running dspam in daemon mode using pipes
instead.
> 
This does not matter. Using pipes or daemon mode both result in using
libdspam (aka: same logic).


> IMHO creating users is a untypical action for a "stats program"
regardless of the opt setting.
> 
Yes if it is not documented. But in the case of DSPAM it is a documented
behaviour.


So the problem you have is either configuration problem (this is still my
suspicion) or the fact that you run that old 3.6.8 version. You however
ruled out that it is configuration so the only left option is to test a
more recent version of DSPAM. Do you have the possibility to do a test with
3.10.2?

----------------------------------------------------------------------

Comment By: kloetpatra (kloetpatra)
Date: 2012-06-26 00:13

Message:
I did the changes, and dspam_stats is still adding new users.
Have to say that I'm not running dspam in daemon mode using pipes instead.

IMHO creating users is a untypical action for a "stats program" regardless
of the opt setting.

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2012-06-25 06:20

Message:
Probably you have instructed DSPAM to automatically create users as soon as
DSPAM is processing messages/tasks for a user.

If you set/change in dspam.conf:
Preference "optIn=off"
Preference "optOut=on"
Opt in

Change preferences for default:
dspam_admin change preference default optIn off
dspam_admin change preference default optOut on


Restart DSPAM daemon and retry to list statistics for a non existing user:
dspam_stats -H ishouldnotexist


If you still get a user created then it is a bug. If you don't get the user
created then please take the time and read the DSPAM documentation
regarding user handling in DSPAM.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3537735&group_id=250683

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to