On Mon, Jan 31, 2005 at 12:11:05PM -0500, Jim Maul wrote:
It doesnt normally fill up /root/ unless you are running spamd as root which i would REALLY not do. my .razor/ and .spamassassin/ directories are in /home/spamd/.
Actually, i meant spamc, but i believe its the same for all commands (sa-learn, spamc, etc). They all should be running as the same, non-root user.
On Debian stable running exim4 and exiscan-acl, IIRC, spamd runs as root by default, where exim is running as Debian-exim. SA is run from within the data ACL at SMTP time (before delivery to any specific user).
The spamd man page says spamd will "setuid() to the user running "spamc" if "spamd" is running as root."
I have assumed that means that spamd will suid to "Debian-exim" when processing a message.
Is this a correct assumption?
Probably, but i do not run spamd as root so i dont know for sure. The problem isnt really what user SA is running as, but where it wants to store its files. By default it uses the home directory of the user its running as. If spamd is running as root and spamc is running as the user who the email is for (allowing user rules), then spamd will constantly be changing where it writes stuff (depending on the user spamc is running as at that moment). However, im using -x to disallow user rules and i also specify -H /home/spamd/ which may very well explain why EVERYTHING gets written to /home/spamd regardless of who the email is addressed to. This makes things very simple for me to manage.
-Jim