I'm running SA 2.64 and I wonder what user should I run sa-learn under. the exim process is ownned by the Debian-user user (Debian testing, Exim4). I have more or less 20 real user users on the server (courrier-IMAP), and they all move the spam they receive into a dedicated folder. Each user has it's own spam folder. But that's not very important.
So, I tried running sa-learn as root, as me, what ... should I do in reality?
Since the exim process is owned by "user" and is calling SA or spamc in that name, you probably need to sa-learn as "user". However, that may not be possible, as user may have no login...
The alternative is to sa-learn as root, using command-line parameters to point to the home directory of "user"
i.e:
sa-learn ----dbpath /home/user/.spamassassin/ --spam .....
double check in the passwd files to see what user's homedir really is. I put /home/user in here, but it's probably /var/something...
After your done, chown the files to "user" and make sure "user".
Also make sure user has rwx privileges to it's home directory (it may not).
