On Thursday 09 August 2007, Mark Sansome wrote:
>On Thu, 2007-08-09 at 11:22 +0200, Gabriella Schmidt wrote:
>> You must use 'su - wifey' to change the user environment.
>
>Oooops!
>
>I appear to be having a day a writing before engaging my brain!
>
>Somebody else also pointed this out to me off-list...
>
>...and indeed you're right. That of course works fine.
>
>So if the permissions are OK I need to look again at the original
>problem.
>
>On Tue, 2007-08-07 at 12:32 -0400, Kris Deugau wrote:
>> -> Call spamc with the -u option and specify each destination user in a
>> separate recipe.  You'll have to call SA for each destination user after
>> splitting off the mail stream for that user (instead of before as you're
>> probably doing now), but you should already have some pieces that do
>> that.  This is probably the simplest option.
>
>Does this mean that I will have to put a ~/.spamassassin/user_prefs
> configuration file in each user's account? And will that mean that each
> will have to have their own bayes learning?

I believe that is how it works, but I can't readily check as there aren't any 
other users on this machine that actually have external email accounts.  I 
run fetchmail as a 500:500 process, and both .fetchmailrc and .procmailrc 
live in that users home directory.  As does a .spamassassin subdir that 
contains:
[EMAIL PROTECTED] .spamassassin]$ ls -l
total 40196
-rw------- 1 gene gene 20795392 Aug  9 06:54 auto-whitelist
-rw-rw-rw- 1 gene gene        6 Aug  9 06:54 auto-whitelist.mutex
-rw-rw-rw- 1 gene gene    29376 Aug  9 06:53 bayes_journal
-rw-rw-rw- 1 gene gene   147750 Aug  9 06:40 bayes.mutex
-rw------- 1 gene gene 21479424 Aug  9 06:40 bayes_seen
-rw-rw-rw- 1 gene gene  5279744 Aug  9 06:40 bayes_toks
-rw-r--r-- 1 gene gene      934 Dec 14  2005 init.pre
-rw-r--r-- 1 gene gene     1164 Jan 16  2006 user_prefs
-rw-r--r-- 1 gene gene     2397 Dec 14  2005 v310.pre


Note the file dates, so this is the active SA database for the user gene.

>What I was hoping to achieve was that all user's mail would be checked for
> viruses and spam, offending mails would be put into a "IN_Spam" folder
> which is then used each night as the basis for sa-learn. Only "clean" mail
> would then be passed on to their respective /var/spool/mail/username
> folder...

I essentially do that here as all mail and SA related stuff is done by me as a 
user, but at the end of the chain its kmail, run as root.  Joanne, if she has 
the time, can tell you how to set that up as its much more secure to handle 
your mail as an un-priviledged user even if you do run as root 99.44% of the 
time.

>Am I going about this the wrong way?
>
>Thanks for your help so far...
>
>Mark



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Solutions are obvious if one only has the optical power to observe them
over the horizon.
                -- K.A. Arsdall

Reply via email to