Kaushal Shriyan wrote:
> Hi ALL
>
> I get this in the Sendmail Maillog
>
> Jul  4 21:25:02 bdcworld spamd[10573]: spamd: processing message
> <[EMAIL PROTECTED]> for
> root:99
> Jul  4 21:25:02 bdcworld spamd[10573]: mkdir /root/.spamassassin:
> Permission denied at
> /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 1486
> Jul  4 21:25:02 bdcworld spamd[10573]: locker: safe_lock: cannot
> create tmp lockfile
> /root/.spamassassin/auto-whitelist.lock.bdcworld.com.10573 for
> /root/.spamassassin/auto-whitelist.lock: Permission denied
> Jul  4 21:25:02 bdcworld spamd[10573]: auto-whitelist: open of
> auto-whitelist file failed: locker: safe_lock: cannot create tmp
> lockfile /root/.spamassassin/auto-whitelist.lock.bdcworld.com.10573
> for /root/.spamassassin/auto-whitelist.lock: Permission denied
>
> How do i get rid of this 

Odds are you're running spamd as root, and calling spamc as root.

Normally, when run as root spamd setuid's itself to the caller of spamc.
However, if this turns out to also be root, spamd setuid's itself to
"nobody" for security reasons.

If you're calling spamc from a milter or some other system-wide way that
winds up always being root, then force spamd to run as a non-root user
by starting it with -u <username>. I'd suggest creating a new user
account for this purpose, one which has it's own real home directory it
can write to. It doesn't need to be able to login, but you'll want to be
able to su to it so you can run sa-learn and other database maintenance
tools.



Reply via email to