Ricardo,

I think your groupfile line looks fine, though this is what mine says

global:classification:*globaluser

Let's troubleshoot:
* Find the uid for your globaluser (i.e. username).
** Run the following sql and replace 'globaluser' with 'username' or
whatever name you use for your globaluser
** mysql> select * from dspam_virtual_uids where username='globaluser';
+------------+-----+
| username   | uid |
+------------+-----+
| globaluser |  12 |
+------------+-----+
1 row in set (0.00 sec)
** Ahh, uid=12

* Do you have debugging on?
** If not, Add the following line to your dspam.conf then restart dspam
Debug *
** Note: Debugging generates a lot of logs, but they are very helpful for
debugging (hence the name) problems.
* Once debugging is on, tail -f the dspam.debug log, mine is here:
/var/log/dspam/
tail -f dspam.debug
* Gen another e-mail and should see a line like this in your dspam.debug
adding user *globaluser to classification group global
But instead of *globaluser you will see *username
* If you don't see this, do you see any failures for this?
* Additionally you can tail/grep your mysql.log for a line like this
25332 Query       select uid from dspam_virtual_uids where username =
'globaluser'
But instead of globaluser you will see username

After doing these things do you see any errors, or maybe where dspam is
querying the wrong user, or perhaps the username/uid combo don't exists
properly on the DB or in dspam?

Sean

> I have a user which I want to use as the initial basis for the dictionary
> of new users. So according to the README file, a good way to do this would
> be to use global classification.
>
> So I have an entry in the group file:
>
> groupname:classification:*username
>
> That's the only line I have in the group file. I'm using virtual uids in
> mysql, and the user "username" is in the dspam_virtual_uids table.
>
> So now I have a new user, which is added to dspam_virtual_uids, and I was
> hoping that this new user would take advantage of the existing global user
> dictionary.
>
> But ALL messages that come in for the new user are innocent.
>
> How does this work and what's wrong with my configuration?
>
> Thanks
> Ricardo

Reply via email to