#753527 spamassassin: cannot create tmp lockfile /var/lib/spamassassin/.spamassassin/bayes.lock ... Permission denied

#753527#5
Date:
2014-07-02 19:05:53 UTC
From:
To:
I'm currently using spamassassin with postfix:

snapper:~ 0# grep spamd -C3 /etc/postfix/master.cf
# Spamassassin definition
#
spamassassin unix -     n       n       -       -       pipe
        user=debian-spamd argv=/usr/bin/spamc -e
        /usr/sbin/sendmail -oi -f ${sender} ${recipient}
snapper:~ 0#

Occasionally I'm seeing the following message in my syslog:

Jul  2 14:48:14 snapper spamd[1888]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /var/lib/spamassassin/.spamassassin/bayes.lock.snapper.1888 for /var/lib/spamassassin/.spamassassin/bayes.lock: Permission denied

This doesn't look innocuous, although I haven't noticed any particular
problems with processing.  I thought it might have to do with the
spamd user and noticed that in fact I have two spamd users in the
system:

snapper:~ 0# getent passwd | grep spam
spamd:x:110:65534::/var/lib/spamassassin:/bin/false
debian-spamd:x:111:112::/var/lib/spamassassin:/bin/sh
snapper:~ 0#

I assume that "debian-spamd" is to "official" one, but I'm not sure
where the other "spamd" user came from.

Any idea what's going on here?

Thanks so much for maintaining.

jamie.