Charles Gregory wrote: > When we first started using SA, I kept a casual eye on the personal files > in .spamassassin, and did not see anything particularly problematic, but > NOW I see auto-whitelist and 'bayes' files that are exceeding 1MB in size, > each. Is this 'normal'?
For users with lots of mail, yes. One of our users, for instance: -rw------- {user} {group} 1314816 Oct 21 14:52 auto-whitelist -rw------- {user} {group} 4386816 May 20 15:55 auto-whitelist.db This seems to be the largest, but I'm not certain. We've been running a global Bayes db: -rw-rw-rw- {user/group} 4546975 Oct 21 14:59 global_bayes_journal -rw-rw-rw- {user/group} 2778 Oct 21 14:59 global_bayes_msgcount -rw-rw-rw- {user/group} 5242880 Oct 21 14:58 global_bayes_seen -rw-rw-rw- {user/group} 5074944 Oct 21 14:58 global_bayes_toks This has recently dropped down from ~10M for _toks. > Or have I encountered a bug that makes those files > balloon out of control? Unless there is a mechanism to limit the size > of those files, the end result of multi-MB files is just as bad (or > worse) than having the spam fill up the user's disk quota..... :-( Heh. What I ended up doing is creating this script: --- #!/bin/sh # Move user's SA config from /home/{user}/.spamassassin to # /var/SpamAssassin/{user} nul="" case "$1" in $nul) echo "usage: move-sa-user [user]" echo " Username is REQUIRED" exit 1; ;; *) mkdir /var/SpamAssassin/$1 mv /home/$1/.spamassassin/* /var/SpamAssassin/$1/ rm -rf /home/$1/.spamassassin/ ln -s /var/SpamAssassin/$1 /home/$1/.spamassassin chown -R $1:mail_pop_only /var/SpamAssassin/$1 chown $1:mail_pop_only /home/$1/.spamassassin echo "User's SA config moved." ;; esac --- Which, along with a set of scripts called daily from cron, allows me to make sure that users' mail quotas aren't significantly affected by large AWL files. (I currently have a few accounts set up to expire spam more than 10 days old; that comes out as ~15-18M of spam. ~200-250+ spams daily. Ugh. "Default" expiry is any account over 17.5M gets the spambox trimmed to 28 days.) -kgd -- <erno> hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk