LuKreme wrote:
But that ID would simply be the vpopmail user, not the individual email addresses that are in the MySQL map, right?
It maps to whatever username spamc is passed, or the *nix UID spamassassin/spamc finds automatically. (I would *hope* you're using spamd/spamc in an environment where you're using vpopmail... <g>)
If you don't specify a calling user, all of your spamc calls are to the same logical username (looked up via *nix UID in the system password file), and SA has no way to know which user you're filtering for.
If your spamc calls are at delivery and *do* refer to the "real" user (email address), you should already have per-user Bayes running by default. (At least, as far as I can see in the docs, and from a mild panic here trying to figure out why the Bayes tables were growing wildly but didn't seem to be doing anything.)
How does a shared UID separate the individual accounts in the MySQL map into individual IDs in the MySQL bayes?
It only relies on *nix UID users if you don't explicitly pass a username to spamc. spamd uses whatever username spamc passes in, and uses the listing in bayes_vars to restrict which bayes_tokens entries it looks at.
We call spamc with -u <recipient>, and run spamd with -x -q to enable SQL. Historically, we haven't used userprefs on this system (and the preprocessed white/black entries handle most of that) but with some of the legacy systems we've imported I've started to add a few sets of userprefs in SQL.
IMO spamd has something of an awkward limitation for some setups where you can't have <X> as on-disk files, and <Y> as SQL, or you can't do certain types of virtual users with some types of userpref/Bayes/AWL/etc storage. I thought of a specific edge case a while ago but I can't recall it at the moment.
-kgd
