The dspam 3.6.4 ebuild sets the permissions on /usr/bin/dspam and /usr/bin/dspam_stats to -r-x--s--- 1 root mail, while all of the directories and such get created with user root, group mail, and permissions 02510 (-r-x--s---). However, the directories and files created by dspam have user dspam and group dspam, so the dspam executable with permissions as above can't write into them if it is executed by anyone but root. These executables should have group dspam and sgid permissions so they can correctly write to these files.
Created attachment 83387 [details] Ebuild that sets proper permissions for dspam executables
takeover the maintainership from st_lim.
fixed in 3.6.8