Somehow the permissions on those files got set so that only root can write to them. But of course, you're running as nobody, so when it tries to write, it's failing. I'll need to check if this is the code's fault. My initial guess is that compile_now() is running before the uid is changed...
C
On Wed, 2002-01-16 at 11:19, Phil Temples wrote:
Hi all, First, I must say that I'm _extremely_ happy with SpamAssassin! It's made a tremendous dent in the spam problem on my server. I'm running with 2.0 at the moment, using spamc/spamd. My question: I can't seem to get the auto_whitelist option to work properly. I'm sure that it's probably something really [stupid|silly|misconfigured] on my part. I'll include as much info as I can, below: Here's my setup: -------------------------------------------------------------------------- /etc/procmailrc: DROPPPRIVS=yes :0fw | spamc -f -------------------------------------------------------------------------- /etc/rc2.d/S99spamassassin: PATH=$PATH:/usr/bin:/usr/local/bin case "$1" in 'start') if [ -x /usr/bin/spamd -o -x /usr/local/bin/spamd ] then # spamd -a -p 783 -d -u nobody spamd -a -d -u nobody fi ;; 'stop') /usr/bin/pkill -9 -x -u 0 '(spamd)' ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0 -------------------------------------------------------------------------- /etc/mail/spamassassin directory: total 8 2 drwxr-xr-x 2 root other 512 Jan 10 09:39 ./ 2 drwxr-xr-x 4 root mail 1024 Jan 15 15:50 ../ 4 -rw-r--r-- 1 root other 1196 Jan 16 09:09 local.cf -------------------------------------------------------------------------- local.cf: # Add your own customisations to this file. See 'man Mail::SpamAssassin::Conf' # for details of what can be tweaked. # ########################################################################### # Whitelists ########################################################################### whitelist_from [EMAIL PROTECTED] whitelist_from [EMAIL PROTECTED] whitelist_from [EMAIL PROTECTED] whitelist_from *@amazon.com whitelist_from *@ebay.com whitelist_from *@ora.com whitelist_from *@bn.com whitelist_from *@yahoo-ic.com whitelist_from *@yahoogroups.com whitelist_from *@internet.com whitelist_from *@wired.com ########################################################################### # Blacklists ########################################################################### blacklist_from [EMAIL PROTECTED] ## Add-ons auto_whitelist_path /var/spool/spamassassin/auto-whitelist auto_whitelist_file_mode 0777 -------------------------------------------------------------------------- /var/spool/spamassassin directory: total 4 drwxr-xr-x 2 root other 512 Jan 16 10:31 ./ drwxr-xr-x 11 root bin 512 Jan 15 09:34 ../ -rw-r--r-- 1 root other 0 Jan 16 09:10 auto-whitelist.dir -rw-r--r-- 1 root other 0 Jan 16 09:10 auto-whitelist.pag (Note: the .dir and .pag have remained zero-length!) -------------------------------------------------------------------------- Here is a "-D" debug output from starting up spamd: [/var/spool/spamassassin io]% spamd -a -D -d -u nobody debug: ignore: test message to precompile patterns and load modules debug: using "/usr/local/share/spamassassin" for default rules dir debug: using "/etc/mail/spamassassin" for site rules dir debug: running header regexp tests; score so far=0 debug: running body-text per-line regexp tests; score so far=5.7 debug: running raw-body-text per-line regexp tests; score so far=5.7 debug: running full-text regexp tests; score so far=5.7 debug: spam-phrase score: 0: hits: debug: Razor is available debug: Razor Agents 1.19, protocol version 2. debug: Read server list from /.razor.lst debug: 47437 seconds before closest server discovery debug: Closest server is 64.90.164.74 194.109.217.74 debug: Connecting to 64.90.164.74 194.109.217.74 ... debug: Connection established debug: Signature: 6fcf9dfbd479ed82697fee719b9f8c610a11ff2a debug: Server version: 1.11, protocol version 2 debug: Server response: Negative 6fcf9dfbd479ed82697fee719b9f8c610a11ff2a debug: Message 1 NOT found in the catalogue. debug: Agent terminated debug: 28973 Trying to get lock on /var/spool/spamassassin/auto-whitelist pass 0 debug: Tie-ing to DB file R/W in /var/spool/spamassassin/auto-whitelist debug: auto-whitelist (db-based): [EMAIL PROTECTED] scores 0 debug: is Net::DNS::Resolver unavailable? 0 debug: looking up MX for 'microsoft.com.' debug: MX for 'microsoft.com.' exists? 1 debug: is DNS available? 1 debug: checking RBL orbs.dorkslayers.com., set relay debug: checking RBL inputs.orbz.org., set relay debug: checking RBL relays.osirusoft.com., set relay debug: checking RBL relays.ordb.org., set relay debug: checking RBL ipwhois.rfc-ignorant.org., set rfci debug: checking RBL results in set relay for 127.0.0.6 debug: checking RBL results in set relay for 127.0.0.4 debug: is spam? score=7.67 required=5 debug: DB addr list: untie-ing and destroying lockfile. debug: DB addr list: file locked, breaking lock. -------------------------------------------------------------------------- I do not have any SA files in /usr/share. (The install didn't put anything there. Could the message, above, "using "/usr/local/share/spamassassin" for default rules dir" be my problem? I understand that spam[c|d] does not allow for individuals to have their own auto-whitelist files. I'm trying to configure system-wide auto-whitelist values. Any ideas? Thanks in advance. Phil -- Phil Temples <[EMAIL PROTECTED]> _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk