Bug 88901 - mail/spampd: allow spampd to change user_directory
Summary: mail/spampd: allow spampd to change user_directory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Yen-Ming Lee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 20:20 UTC by Rauf Kuliyev
Modified: 2005-12-09 09:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rauf Kuliyev 2005-11-12 20:20:21 UTC
Allow spampd to change user_directory when creating a Mail::SpamAssassin
instance

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

Fix: 

$options{'auto-whitelist'} and eval {--50ZiE8XuqZAJuKoTErrky6s1elENGRzueTyi6prnk3Unmg61
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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 });
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-11-12 22:50:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Fix up synopsis and assign.
Comment 2 Yen-Ming Lee freebsd_committer freebsd_triage 2005-12-08 01:44:42 UTC
Responsible Changed
From-To: perl->leeym

correct synopsis and take
Comment 3 Yen-Ming Lee freebsd_committer freebsd_triage 2005-12-08 01:49:49 UTC
Hi, maintainer,

Could you please take a look on PR 88901, and approve it or reject it.
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88901

Regards,
-- 
Yen-Ming Lee [utf7:+Z05fZWYO] | KeyID:0x5EB52E51 | Taipei, Taiwan
Comment 4 Yen-Ming Lee freebsd_committer freebsd_triage 2005-12-09 09:59:47 UTC
State Changed
From-To: open->closed

Committed, thanks.