Le 05/04/2013 11:45, Tom Hendrikx a écrit :
>
> The data/local/username construct is used if you have a setup that
> requires usernames formatted as email addresses (you have that) but you
> use a login name without a domain. Dspam then uses the 'local' string in
> stead of the domain you failed to use.

That's the part I don't understand because I am logging to the web 
frontend with the full email address as the HTTP username.

I checked using a phpinfo script running in the same apache context as 
the dspam CGI and the HTTP environment variable REMOTE_USER is set to 
user@domain.

> Since you state that data is stored in 'data/$domain/$localpart', it
> seems that most accounts are ok. What kind of username fails, and under
> which circumstances? Which cli or webui do you use, and show commandline
> examples?

I am currently testing the setup, so for the momemt I only have two 
users on the system (in the same domain), which are both having the same 
problem.

Ultimately, the plan is to be able to use different domains (with 
foo@domain1 being a different user from foo@domain2) but I want to make 
sure everything is working correctly before having more users thrown 
into the system.

For the cli tools, if I use for exemple dspam_stats, I get the following 
results :

with symlink from local to $domain

root@host:~# dspam_stats
user1   TP:0 TN:0 FP:0 FN:1 SC:0 NC:0
user2   TP:0 TN:203 FP:0 FN:0 SC:0 NC:0
user1   TP:0 TN:0 FP:0 FN:1 SC:0 NC:0
user2   TP:0 TN:203 FP:0 FN:0 SC:0 NC:0

where user1 and user2 are the part before the @

without the symlink

root@host:~# dspam_stats
Unable to attach DSPAM context
Unable to attach DSPAM context

and in that case, syslog contains the following error messages :

Apr  5 12:05:37 host dspam[6401]: Unable to open file for writing: 
/var/spool/dspam/data/local/user1/user1.lock: No such file or directory
Apr  5 12:05:37 host dspam[6401]: unable to attach dspam context
Apr  5 12:05:37 host dspam[6401]: Unable to open file for writing: 
/var/spool/dspam/data/local/user2/user2.lock: No such file or host
Apr  5 12:05:37 host dspam[6401]: unable to attach dspam context


Thanks,

Antonin

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to