Re: Fwd: how to move user_prefs path
Pradeep Mishra wrote: > Dear All > > I have ovserved that iostat on one of my servers running spamassassin > is aprox 12% and when i moved $Home/.spamassassin to somewhere else it > comes down to 2%. I would like to know where can i change the path to > /somehere/.spamassassin ?? > OR How do i change the userstate_dir path to > /something_else/.spamassassin in place of /$USER_DIR/.spamassassin. I found symlinking a user's ~/.spamassassin directory to somewhere else works just fine. Here's a shell script I wrote to do this. Modify to suit your system: #!/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
Re: Fwd: how to move user_prefs path
Pradeep Mishra wrote: > Dear All > > I have ovserved that iostat on one of my servers running spamassassin > is aprox 12% and when i moved $Home/.spamassassin to somewhere else it > comes down to 2%. I would like to know where can i change the path to > /somehere/.spamassassin ?? If it's IO, it's probably the bayes and AWL. Those can be changed using bayes_path and auto_whitelist_path settings at the local.cf level. WARNING: despite their names, these options are not just paths. bayes takes a path plus a partial filename that it will append _toks, _seen, etc to. The AWL one takes a path and a filename. However, unless this path is in ~/ you'll loose per-user state for these files, causing them all to be shared.. That might or might not be OK with you. see man Mail::SpamAssassin::Conf for more details. > OR How do i change the userstate_dir path to > /something_else/.spamassassin in place of /$USER_DIR/.spamassassin. If you use spamd, you can use the --virtual-config-dir option, to use SA data in some completely different path. This also allows %l to be specified to generate per-user directories. ie: --virtual-config-dir /vhome/%l/.spamaassassin see man spamd for more details
Fwd: how to move user_prefs path
Dear All I have ovserved that iostat on one of my servers running spamassassin is aprox 12% and when i moved $Home/.spamassassin to somewhere else it comes down to 2%. I would like to know where can i change the path to /somehere/.spamassassin ?? OR How do i change the userstate_dir path to /something_else/.spamassassin in place of /$USER_DIR/.spamassassin. Thanks Bye -- Forwarded message -- From: Pradeep Mishra <[EMAIL PROTECTED]> Date: Jun 1, 2007 1:41 AM Subject: how to move user_prefs path To: users@spamassassin.apache.org Dear All I have ovserved that iostat on one of my servers running spamassassin is aprox 12% and when i moved $Home/.spamassassin to somewhere else it comes down to 2%. I would like to know where can i change the path to /somehere/.spamassassin ?? Thanks in advance. -- Good Judgement comes from Experience and Experience comes from bad Judgement!! The more I know, the more I realize I don't know!? The easiest way to find out is to try it!!! -- Good Judgement comes from Experience and Experience comes from bad Judgement!! The more I know, the more I realize I don't know!? The easiest way to find out is to try it!!!