> -----Original Message-----
> From: Kris Deugau

> In order to get spamd/spamc to use per-user prefs in 
> ~/.spamassassin, you have two requirements:
> 
> 1) spamd must run as root, otherwise it can't fork and drop 
> priviledges to the user in question.  Among other things, 
> this lets it create the ~/.spamassassin directory if it 
> doesn't exist.  You *may* be able to get away with running 
> spamd as a non-root user, so long as you make sure all users 
> have ~/.spamassassin.  Personally I wouldn't count on it.
> 
> 2) you must call spamc with the -u parameter, in order to 
> tell spamd which user to load preferences for when it forks.

I could be wrong about this but I do not believe that spamc needs to be run
with the -u parameter.  The reason is that the master.cf file should be
configured to pipe the message to filter script running as user filter.

filter    unix  -       n       n       -       -       pipe
  flags=Rq user=filter argv=/somewhere/filter -f ${sender} -- ${recipient}

I pipe to Procmail which runs under the user I specified.  I never have to
call spamc -u, the site user is already set.


Jason - did you restart spamd?  You should have a home directory for user
filter where the /home/filter/.spamassassin/user_prefs file should be
located.  Is this the case?  I would continue to run spamd as root.

--Larry



--Larry



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to