Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


admin2 at enabled

Jan 7, 2008, 11:29 PM

Post #1 of 2 (319 views)
Permalink
auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile

Hi there list,

I installed the following spamassasin proggies on my FreeBSD machine and
receiving an error "auto-whitelist file failed: locker: safe_lock:
cannot create tmp lockfile"

Any clues what I am doing wrong?


# pkg_info | grep Spam
p5-Mail-SpamAssassin-3.2.3 A highly efficient mail filter for
identifying spam
spamass-milter-0.3.1_3 Sendmail Milter (mail filter) plugin for SpamAssassin



Jan 7 23:25:42 blah spamd[62451]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp
lockfile
/nonexistent/.spamassassin/auto-whitelist.lock.blah.domain.com.62451 for
/nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory

Cheers,
Noah


mkettler_sa at verizon

Jan 8, 2008, 4:35 AM

Post #2 of 2 (296 views)
Permalink
Re: auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile [In reply to]

Noah wrote:
> Hi there list,
>
> I installed the following spamassasin proggies on my FreeBSD machine
> and receiving an error "auto-whitelist file failed: locker: safe_lock:
> cannot create tmp lockfile"
>
> Any clues what I am doing wrong?
>
>
> # pkg_info | grep Spam
> p5-Mail-SpamAssassin-3.2.3 A highly efficient mail filter for
> identifying spam
> spamass-milter-0.3.1_3 Sendmail Milter (mail filter) plugin for
> SpamAssassin
>
>
>
> Jan 7 23:25:42 blah spamd[62451]: auto-whitelist: open of
> auto-whitelist file failed: locker: safe_lock: cannot create tmp
> lockfile
> /nonexistent/.spamassassin/auto-whitelist.lock.blah.domain.com.62451
> for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or
> directory

My guess is you're using spamd, and spamc is being called as root with
no -u parameter by spamasss-milter.. This tells spamd to scan mail on
behalf of the user root, but for safety, spamd will never do that. So,
it setuid's itself to nobody, which probably has a home directory of
/nonexistent/. (and the user nobody should not have a writable home
directory, so don't try to fix this by giving it one. You'll degrade
your system security if you do)

Alternatively, you're explicitly specifying a user like nobody which has
/nonexistent/ as a home directory. (you can check /etc/passwd to see who
has this home directory).

To fix it, check your spamass-milter config and pass a user id after -u
to spamass-milter that has a real home directory. From what I know of
spamass-milter, it should pass this userid on to spamd.

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.