On Thursday 28 August 2003 05:12 pm, Larry Gilson wrote: > > 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.
Running spamd as root or not root hasn't seemed to matter. I'm running it as root while I'm working in debugging this. > > 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. Running spamc with the -u flag seems to require a username which I'm no entirely clear how to pass that in from postfix. Here's what I have in master.cf: # ========================================================= # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) #========================================================== smtp inet n - n - - smtpd -o content_filter=spamfilter: spamfilter unix - n n - - pipe flags=Rq user=filter argv=/usr/local/sbin/spamfilter -f ${sender} -- ${recipient} Inside of /usr/local/sbin/spamfilter I have: #!/bin/bash /usr/bin/spamc | /usr/sbin/sendmail -i "$@" exit $? I'm starting spamd with: usr/bin/spamd -a -d -m 10 -r /var/run/spamd.pid & and in /etc/mail/spamassassin/local.cf I have: allow_user_rules 1 Does all of this seem to make sense? My ~/.spamassassin/user_prefs only has one command which is 'required_hits 3.5'. Thanks for the help everyone. This is very puzzling for me. -- Jason McCormick [EMAIL PROTECTED] GPG Key: http://www.devrandom.org/gpgkey.php GPG Fingerprint: 66C5 2B15 3E34 2B5E 5321 6147 303A DCE6 0A74 A19C ------------------------------------------------------- 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