Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2005 20:17:59 GMT
From:      Rauf Kuliyev <rauf@kuliyev.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/88901: to get rid of spampd "auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create lockfile /root/.spamassassin/auto-whitelist.mutex: Permission denied" message
Message-ID:  <200511122017.jACKHxpr034921@www.freebsd.org>
Resent-Message-ID: <200511122020.jACKKM4w017611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         88901
>Category:       ports
>Synopsis:       to get rid of  spampd "auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create lockfile /root/.spamassassin/auto-whitelist.mutex: Permission denied"  message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 12 20:20:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Rauf Kuliyev
>Release:        FreeBSD 5.4-p4
>Organization:
>Environment:
FreeBSD pe1800.connect.az 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #4: Wed Jul 27 12:24:31 UTC 2005     root@pe1800.connect.az:/usr/obj/usr/src/sys/PE1800  i386

>Description:
              Allow spampd to change user_directory when creating a Mail::SpamAssassin instance



>How-To-Repeat:

/usr/local/sbin/spampd --user=spamd --group=spamd --host 127.0.0.1:10026 --relayhost=127.0.0.1:10027 --dose --tagall --auto-whitelist

>Fix:
                            
diff -Naur /tmp/spampd /usr/local/sbin/spampd
--- /tmp/spampd Sun Nov 13 00:04:12 2005
+++ /usr/local/sbin/spampd      Sun Nov 13 00:05:29 2005
@@ -793,6 +793,7 @@
 my $assassin = Mail::SpamAssassin->new({
                'dont_copy_prefs' => 1,
                'debug' => $debug,
+               'user_dir' => (getpwnam($user))[7],
                'local_tests_only' => $options{'local-only'} || 0 });

 $options{'auto-whitelist'} and eval {
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511122017.jACKHxpr034921>