Hi ,
I know this message has been posted several time sbut I couldn't get
satisfactory answer.

I have successfully installed Openprotect 5.0.4 mentioned at
http://wiki.apache.org/spamassassin/IntegratedInMta which is complete
package including
MailScanner for intergration with MTAs, spamassassin, clamav antivirus on
RHEL 4 running 2.6.9-67.0.15.ELsmp. When I am trying to test spam mail as
mentioned in documentation I get following error in maillog

Jun 17 09:39:21 smgtest2 spamd[25646]: spamd: still running as root: user
not specified with -u, not found, or set to root, falling back to nobody at
/usr/bin/spamd line 1150, line 4.
Jun 17 09:39:21 smgtest2 spamd[25646]: spamd: processing message
<200806171338.m5HDcuTJ025644@smgtest2.bu.edu> for root:99
Jun 17 09:39:29 smgtest2 spamd[25646]: mkdir /root/.spamassassin: Permission
denied at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin.pm line 1467
Jun 17 09:39:29 smgtest2 spamd[25646]: locker: safe_lock: cannot create tmp
lockfile /root/.spamassassin/auto-whitelist.lock.smgtest2.bu.edu.25646 for
/root/.spamassassin/auto-whitelist.lock: Permission denied
Jun 17 09:39:29 smgtest2 spamd[25646]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.smgtest2.bu.edu.25646 for
/root/.spamassassin/auto-whitelist.lock: Permission denied
Jun 17 09:39:29 smgtest2 spamd[25646]: Can't call method "finish" on an
undefined value at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line 397.

After gooogling I found that error is because I am running spamd as root .
I tried adding DROPPRIVS=yes to /etc/procmailrc
But that didn’t work.
I also created a user called spamd , assign home directory then run

/usr/bin/spamd -r /var/run/spamd.pid -d --username=spamd

then send test mail again but same error

How do I tell spamd to run as different user ? What privileges are required
by that user ?
Thanks
MP

--
View this message in context: http://www.nabble.com/-root-.spamass...p17916446.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.