Hello all,
To start off, I'm running FreeBSD 4.7, SpamAssassin 3.1.0_5 all on a default install (only args are -d -r /var/run/spamd/spamd.pid). After I start spamd (via /usr/local/etc/rc.d/sa-spam.sh start), I did a ps -aux and saw the following; root 91555 1.9 0.6 22628 22140 ?? Ss 3:00PM 0:00.78 /usr/local/bin/spamd -c -d -r /var/run/spamd/spamd.pid (suidperl) root 91567 0.0 0.6 22624 22136 ?? S 3:00PM 0:00.01 spamd child (suidperl) root 91568 0.0 0.6 22624 22136 ?? S 3:00PM 0:00.01 spamd child (suidperl) When it runs as root by default, everything seems to work (i.e. no permission errors in the logs, no autolearn=failed/autolearn=unavailable). However, when I invoke -u spamd, I always see autolearn=failed and such. I've reinstalled spamassassin from the ports and I still have this problem. I spent sometime on google/archives and couldn't find the answer. Lastly, I see the following in my logs; Jan 9 15:10:01 sphere spamd[3512]: spamd: setuid to root succeeded Jan 9 15:10:01 sphere spamd[3512]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at /usr/local/bin/spamd line 1147, <GEN5> line 4. Jan 9 15:10:01 sphere spamd[3512]: spamd: processing message <[EMAIL PROTECTED]> for root:65534 Jan 9 15:10:01 sphere spamd[3512]: mkdir /root/.spamassassin: Permission denied at /usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin.pm line 1467 Jan 9 15:10:01 sphere spamd[3512]: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.sphere.some-domain.com.3512 for /root/.spamassassin/auto-whitelist.lock: Permission denied Jan 9 15:10:01 sphere spamd[3512]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.sphere.some-domain.com.3512 for /root/.spamassassin/auto-whitelist.lock: Permission denied Jan 9 15:10:01 sphere spamd[3512]: Can't call method "finish" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Plugin/AWL.pm line 397, <GEN5> line 19. Jan 9 15:10:01 sphere spamd[3512]: bayes: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.lock.sphere.some-domain.com.3512 for /root/.spamassassin/bayes.lock: Permission denied Any help would be greatly appreciated!